[Gambas-user] gb.desktop Desktop.ActiveWindow
Ru Vuott
vuott at ...325...
Thu Oct 22 20:05:47 CEST 2015
Hello,
maybe Gianluigi is right:
*************************************************************************
Private id As Integer
Public Sub Button1_Click()
Dim dw As New DesktopWatcher As "Watcher"
id = Desktop.Windows[Desktop.Windows.Count - 3].Id ' " -3" if we run a Gambas project from IDE
Print Hex(id), Desktop.Windows.FromHandle(id).Name
Desktop.Windows.FromHandle(id).Activate
End
Public Sub Watcher_ActiveWindow()
If Desktop.ActiveWindow <> id Then Desktop.Windows.FromHandle(id).Activate
End
*********************************************************************
regards
vuott
--------------------------------------------
Gio 22/10/15, Gianluigi <bagonergi at ...626...> ha scritto:
Oggetto: Re: [Gambas-user] gb.desktop Desktop.ActiveWindow
A: "mailing list for gambas users" <gambas-user at lists.sourceforge.net>
Data: Giovedì 22 ottobre 2015, 18:03
I think you should look
at DesktopWatcher
Regards
GIanluigi
2015-10-21 22:54 GMT+02:00
herberth guzman <herberthguzman at ...626...>:
> Greetings to all,
> I need help please with component
gb.desktop.x11 to my Panel(f_panel)
>
> I will try to explain:
> To activate a window the following
code:
>
>
value=last.tag
>
Desktop.Windows.FromHandle (value) .Activate
>
> I would like to know
how can I ask X11 which windows has focus.
> For instance, my application(form_taskbar)
is running with many others
> (e.g.
firefox, libreoffice, gimp,...)
>
> Suppose that at first firefox has focus
and that the user clicked on my app
>
which now has the focus. I want that my application put
focus on firefox
> again.
>
> Does anyone knows how
to achieve this?
>
> I
leave a link that explains what I need.
>
Please help.
>
>
> http://stackoverflow.com/questions/1014822/how-to-know-which-window-has-focus-and-how-to-change-it
>
> Benoit
> Aidez-moi s'il vous plaît
> I'm lost
>
> Help me please
>
I'm lost
>
>
Herberth Guzman
>
>
------------------------------------------------------------------------------
>
_______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
------------------------------------------------------------------------------
_______________________________________________
Gambas-user mailing list
Gambas-user at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user
More information about the User
mailing list