Re: [kde-linux] Current window title



On Monday 21 May 2007, Luciano ES wrote:
Can I get the current window's title/caption with DCOP? For example:

"Current window title - KMail" - that's what I see right now.

How?

Depends what exactly you are looking for.
For example getting KMail's window title (caption) works like this#

% dcop kmail kmail-mainwindow#1 caption

However it is not possible to query KWin for the currently active window, you
can only ask the window if it is the active one

% dcop kmail kmail-mainwindow#1 isActiveWindow

Cheers,
Kevin

--
Kevin Krammer, KDE developer, xdg-utils developer
KDE user support, developer mentoring

Attachment: pgpG9wndF4VuQ.pgp
Description: PGP signature

___________________________________________________
This message is from the kde-linux mailing list.
Account management: https://mail.kde.org/mailman/listinfo/kde-linux.
Archives: http://lists.kde.org/.
More info: http://www.kde.org/faq.html.

Relevant Pages

  • Re: SetMapMode
    ... representation on the window given and at the coordinates given. ... The dll exposes an object model that the developer will use to define ... Firstly they contain an object representing the top caption (this ... my mp3 player) or a window (I will use this in my mp3 player to show ...
    (microsoft.public.vb.general.discussion)
  • Re: [kde-linux] Current window title
    ... Subject: Current window title ... For example getting KMail's window title (caption) works like this# ... However it is not possible to query KWin for the currently active window, ... % dcop kmail kmail-mainwindow#1 isActiveWindow ...
    (KDE)
  • Re: Drawing titlebar on XP with themes
    ... > This might cause flickering but no flickering is discernible on my ... there is a flickering problem if the window is ... WM_NCPAINT so that Windows does not draw any text in the caption. ... int cxframe = GetSystemMetrics; ...
    (microsoft.public.win32.programmer.ui)
  • Re: Change Window CE Caption Size and Font
    ... and *ALWAYS* a child window of another window, ... Do you know how can i draw this control IN my main window. ... i make a new window with a caption. ... the application font is used to ...
    (microsoft.public.windowsce.embedded.vc)
  • Re: CFileDialog in Threads
    ... question about how to change the caption seems remarkably silly, ... but adding gratuitous complexity which runs against ... ("don't touch a window from another thread"), ... It would never have occurred to me to use threads for this purpose. ...
    (microsoft.public.vc.mfc)