Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2001-02

GetActiveWindow

5 messages · 3 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Shane Miller

A trick I was doing was hiding the form and then showing the form. That would bring it to the front. Shane

>> 02/07/01 04:02PM >>>
Vincent Snijders wrote
When you do ask then on one of those lists, please ask them how you do something like a bringtofront, i.e. put your application topmost of all. It stumped me about a year ago.

This one I know is an almost no go. The order and display of application windows is strickly a matter for the WM. Since this is WM dependent and it is unknown what WM the user is using I don't think there is an easy way for this to be done. It would require a standardization of all WM which I think is the problem.

Unless someone else knows something to the contrary I don't think this will ever be possible. ( according to what I have read )

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com _________________________________________________________________ To unsubscribe: mail with "unsubscribe" as the Subject archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Michael A. Hess
to Shane Miller: How do you get the active window in GTK? I see there's a function called…
Vincent Snijders wrote
When you do ask then on one of those lists, please ask them how you do something like a bringtofront, i.e. put your application topmost of all. It stumped me about a year ago.

This one I know is an almost no go. The order and display of application windows is strickly a matter for the WM. Since this is WM dependent and it is unknown what WM the user is using I don't think there is an easy way for this to be done. It would require a standardization of all WM which I think is the problem.

Unless someone else knows something to the contrary I don't think this will ever be possible. ( according to what I have read )

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email

Shane Miller

How do you get the active window in GTK?

I see there's a function called gtk_widget_top_level but that's not it. I don't want to pass anything to it if I don't have to. I just want to see which window is currently active.

Any ideas?

Shane

Reply by email

Michael A. Hess
to Shane Miller
Shane Miller wrote
How do you get the active window in GTK?

I'm stumped. I can't find anything either.

The gtk_widget_top_level just finds the top parent window that owns the specific widget you are dealing with.

It appears that the following:

gdk_window_get_toplevel
gdk_window_get_toplevels

Might be somewhat close to what is needed but the documentation is poor for these routines and I don't think that they even do what is needed.

I think the problem is that it is dealing with the Window Manager as well.

You might have to ask this one on one of the GTK or Gnome lists.

==== Programming my first best destiny! ==== Michael A. Hess Miracle Concepts, Inc. http://www.miraclec.com

Reply by email