2009/10/29 SteveG <[email protected]>: > On Friday 30 October 2009 01:58:57 Paul Ishenin wrote: >> SteveG wrote: >> > Would anybody know how to ensure a Laz form is brought to top, even if >> > Laz app doesnt currently have focus ? >> > >> > eg - an alert msg/form to be forced to top/front every x seconds until >> > acknowledged. Needs to be brought to top/front again even if user clicks >> > on window behind and covers it. >> >> AForm.BringToFront ? > > I have tried all (I think) permutations of Form.BringToFront / OnTop / > MakeVisible / etc I can find. > It would seem under KDE (at least) if your app doesnt have focus, your forms > dont pull to front on standard commands ? > Even under Windows I needed to call the API directly to help out here - just > dont know how to do the same with linux
Which widgetset? It may depend on your window manager, but for gtk something like gtk_window_present() should work. Don't know about Qt. XRaiseWindow should do the job for all widgetsets, but that's more work. Henry -- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
