[Lazarus] Bringing a form to the foreground

Mattias Gaertner nc-gaertnma at netcologne.de
Thu Jun 26 12:22:22 CEST 2008


On Wed, 25 Jun 2008 11:25:23 +0000
Mark Morgan Lloyd <markMLl.lazarus at telemetry.co.uk> wrote:

> Is there a portable way of bringing an application to the foreground, 
> specifically so that its "Do you really want to quit?" dialogue is 
> immediately visible?
> 
> The scenario here is that when running under KDE if you click on an 
> app's frame's close button or <Right Click><Close> on its taskbar
> button it doesn't bring the app to the foreground, so the dialogue is
> hidden.
> 
> I know that arbitrary focus changes are deprecated, but this is one
> of a small number of cases where it's justified.

Have you tried Form1.ShowOnTop?

Mattias
 



More information about the Lazarus mailing list