Autore Topic: gb.desktop - Come sapere quale finestra ha il focus ?  (Letto 180 volte)

Offline vuott

  • Moderatore globale
  • Senatore Gambero
  • *****
  • Post: 11.723
  • Ne mors quidem nos iunget
    • Mostra profilo
gb.desktop - Come sapere quale finestra ha il focus ?
« il: 24 Luglio 2015, 00:22:13 »
Riporto questa discussione apparsa nella M.L.I.:


" I have a question.?
Can you help me please.
to activate a window is:

Desktop.Windows.FromHandle (Value) .Activate
or
Desktop.ActiveWindow = value

I have a problem.
I have 3 WINDOWS and the 3 WINDOW ARE ACTIVE.

How to know which window has focus and how to change it...?
i am trying to fix it and I can not.

Herberth
"


" Desktop.ActiveWindow gives you the id of the currently active window.

Setting that property asks the window manager to change the current
active window. It's exactly the same thing has calling the Activate()
method on a DesktopWindow object.

I suggest you read the 'gb.desktop' source code to understand what
happens exactly.

Anyway, there is only one active window, as the X11 root window property
that stores the active window only returns one window id, so I don't
understand how you can say that you have three active windows !?

Regards,

--
Benoît Minisini
"
« Chiunque, non ricorrendo lo stato di necessità, nel proprio progetto Gambas fa uso delle istruzioni Shell o Exec, è punito con la sanzione pecuniaria da euro 20,00 a euro 60,00. »