Hi,
I have been looking at implementing the BringToFront function on Linux with gtk, but I couldn't find out what gtk/gdk function to use. Has anybody an idea?
TIA,
Vincent.
P.S. Michael H., is the Lazarus site still down? ;-)

Mailing lists / lazarus / 2000-05
10 messages · 6 people ·
Reply by email Subscribe to this list Your subscription
Read-only archive. Use j and k to move between messages.
Hi,
I have been looking at implementing the BringToFront function on Linux with gtk, but I couldn't find out what gtk/gdk function to use. Has anybody an idea?
TIA,
Vincent.
P.S. Michael H., is the Lazarus site still down? ;-)
Vincent Snijders wroteP.S. Michael H., is the Lazarus site still down? ;-)
Well ... yes and no. It is obviously up since the mailing list is working (same host). However it isn't using the new DSL line yet. They had some problems getting it working on Thursday and didn't let me know until late Friday that it was working OK which meant there wasn't enough time in the day to work with the provider to get things finalized. I have to switch my account from my current service to the DSL service but I have to be sure the DSL is working before I cut off and move over to it. Then I have to notify the internic that my IP has changed which takes 24 hours to modify.
So ...... it is up now but it is still in transition and will be up and down over the next day or so. :-\
I have been looking at implementing the BringToFront function on Linux with gtk, but I…
A wild guess, look at (the implementation of) gdk_window_raise
Marc
I have been looking at implementing the BringToFront function on Linux with gtk, but I…
Shane or anybody else,
What exactly needs to happen, when the GTKObject receives a LM_BRINGTOFRONT message? Is it a message sent by a form or just any wincontrol or an application? Must it switch applications?
What do you want it to do?
Vincent
At this point I only need BRINGTOFRONT to bring the dialog to the front of all other dialogs. This means that if another application is currently focused, it should bring itself to the front...
Shane
>> 05/30/00 04:57PM >>>
Shane or anybody else,
What exactly needs to happen, when the GTKObject receives a LM_BRINGTOFRONT message? Is it a message sent by a form or just any wincontrol or an application? Must it switch applications?
What do you want it to do?
Vincent
_________________________________________________________________ To unsubscribe: mail with
"unsubscribe" as the Subject
archives at http://www.miraclec.com/list_archives/lazarus
Vincent Snijders wroteI haven't tried it, but iirc the application.bringtofront in Delphi brings the application to the foreground. That is the functionality I want.
this does not work in win98 (and I presume win2000). M$ changed the behavour so applications can't dictate to the user what is shown. It now causes the application window to flash.
At this point I only need BRINGTOFRONT to bring the dialog to the front of all other…
Shane,
I give up on this. I can't find out how to do this. gdk (or gtk) doesn't seem to have a SetForegroundWindow function to activate the application if it is currently not the active application.
Regards,
Vincent.
At this point I only need BRINGTOFRONT to bring the dialog to the front of all other…
Vincent Snijders wroteI give up on this. I can't find out how to do this. gdk (or gtk) doesn't seem to have a SetForegroundWindow function to activate the application if it is currently not the active application.
did you try gdk_window_raise?
- Sebastian
At this point I only need BRINGTOFRONT to bring the dialog to the front of all other…
I didn't really follow the discussion, so I hope I don't repeat anything which has already been said:
After searching the XLib manual, I would say that gdk_window_raise (which calls XRaiseWindow) is the only possiblity. The problem is that Windows is not X. Under X, the window manager controls the behaviour, and in some window managers you can configure what it does regarding the focus. So I guess that you simply cannot enforce that a window gets on top, when the window manager doesn't want this.
- Sebastian
At this point I only need BRINGTOFRONT to bring the dialog to the front of all other…
> I give up on this. I can't find out how to do this. gdk (or gtk) doesn't > seem to have a SetForegroundWindow function to activate the application
if
> it is currently not the active application. did you try gdk_window_raise?
I did try it, but not correctly. Just tonight a gave it an other try, but it does only part of the job. It brings the window passed to gdk_window_raise to the front, but only if the application is active. I think shane wants it to be on top, also if the application is not running in the foreground currently. So how can you force the task switching bit?
I haven't tried it, but iirc the application.bringtofront in Delphi brings the application to the foreground. That is the functionality I want.
Vincent Snijders