Re: [Gambas-user] gb.desktop Desktop.ActiveWindow

2015-11-17 Thread zainudin ahmad
and Gtk issue : Bug report 843


On Wed, Nov 18, 2015 at 4:57 AM, herberth guzman 
wrote:

> Regards Zainudin Ahmad
>
> Thanks for taking time to help me.
>
> Your example is useful for my project and adapt your code, and My_panel
> works as I wanted.
>
> I am making changes in the area of desktop settings and very soon will show
> a new version of the project Innova_Desktop 1.4
>
> Thousand thanks
>
>
> Herberth Guzmán
>
> --
> Give your users amazing mobile app experiences with Intel XDK.
> Use one codebase in this all-in-one HTML5 development environment.
> Design, debug & build mobile apps & 2-D/3-D games for multiple OSs.
> Then get your creation into app stores sooner, with many ways to monetize.
> http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
Give your users amazing mobile app experiences with Intel XDK.
Use one codebase in this all-in-one HTML5 development environment.
Design, debug & build mobile apps & 2-D/3-D games for multiple OSs.
Then get your creation into app stores sooner, with many ways to monetize.
http://pubads.g.doubleclick.net/gampad/clk?id=254741551=/4140
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.desktop Desktop.ActiveWindow

2015-11-16 Thread zainudin ahmad
I have added taskbar example into Gambas Software Farm
I hope it's can help

On Sat, Oct 31, 2015 at 12:52 AM, herberth guzman 
wrote:

> Gianluigi greetings and Vuotto
>
> Thanks for your answers.
>
> Attach Example of MyPanel and if I work with DesktopWatcher.
>
> The problem that I have long ago (when I started the project)
> MyPanel is not working as a panel (taskbar) example "lxpanel", "fbpanel",
> "Tint2".
>
> I have worked on improving this project (Innova_Desktop), MyPanel is a
> deficiency.
>
> You can see my code, and someone please help me.
>
> MyPanel:
>
> If activate a window
> If minimize a windows if not is minimized
> It does not activate if it is not in the foreground (active behind another
> window)
>
> Try the example and will know what I mean
> Excuse me for my bad English.
>
> Regards
>
> Herberth Guzmán
>
>
> --
>
> ___
> Gambas-user mailing list
> Gambas-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
>
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.desktop Desktop.ActiveWindow

2015-10-30 Thread herberth guzman
Gianluigi greetings and Vuotto

Thanks for your answers.

Attach Example of MyPanel and if I work with DesktopWatcher.

The problem that I have long ago (when I started the project)
MyPanel is not working as a panel (taskbar) example "lxpanel", "fbpanel",
"Tint2".

I have worked on improving this project (Innova_Desktop), MyPanel is a
deficiency.

You can see my code, and someone please help me.

MyPanel:

If activate a window
If minimize a windows if not is minimized
It does not activate if it is not in the foreground (active behind another
window)

Try the example and will know what I mean
Excuse me for my bad English.

Regards

Herberth Guzmán


SystemTray-1.0.3.tar.gz
Description: GNU Zip compressed data
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.desktop Desktop.ActiveWindow

2015-10-22 Thread Ru Vuott
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 <bagone...@gmail.com> ha scritto:

 Oggetto: Re: [Gambas-user] gb.desktop Desktop.ActiveWindow
 A: "mailing list for gambas users" <gambas-user@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 <herberthguz...@gmail.com>:
 
 > 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@lists.sourceforge.net
 > https://lists.sourceforge.net/lists/listinfo/gambas-user
 >
 --
 ___
 Gambas-user mailing list
 Gambas-user@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/gambas-user
 

--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


Re: [Gambas-user] gb.desktop Desktop.ActiveWindow

2015-10-22 Thread Gianluigi
I think you should look at DesktopWatcher

Regards
GIanluigi

2015-10-21 22:54 GMT+02:00 herberth guzman :

> 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@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user
>
--
___
Gambas-user mailing list
Gambas-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user


[Gambas-user] gb.desktop Desktop.ActiveWindow

2015-10-21 Thread herberth guzman
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@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/gambas-user