Sign in Join

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

Mailing lists / lazarus / 2000-05

BringToFront

10 messages · 6 people ·

Reply by email Subscribe to this list Your subscription

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

Vincent Snijders

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? ;-)

Reply by email

Michael A. Hess
to Vincent Snijders
Vincent Snijders wrote
P.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. :-\

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

Reply by email

Shane Miller

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

Reply by email

Andrew Bednarz
to Shane Miller
Vincent Snijders wrote
I 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.

Bed Now mailing straight from a linux desktop to you http://www.geocities.com/Hollywood/2430

Reply by email

Vincent Snijders
to Shane Miller: 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.

Earlier message 35 lines
----- Original Message ----- From: Shane Miller To: Sent: Wednesday, May 31, 2000 2:52 PM Subject: Re: [lazarus] BringToFront > 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 > > _________________________________________________________________ > To unsubscribe: mail with > "unsubscribe" as the Subject > archives at http://www.miraclec.com/list_archives/lazarus

Reply by email

Sebastian Günther
to Shane Miller: At this point I only need BRINGTOFRONT to bring the dialog to the front of all other…
Vincent Snijders wrote 11 lines
> 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.

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

Reply by email

Vincent Snijders
to Shane Miller: 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

Reply by email