Board index » delphi » Keeping modeless dialog forms on top of calling form

Keeping modeless dialog forms on top of calling form

Hiya ...

I have written a form which displays some text on a bitmapped background,
which works fine.

I display it with:

  TxtDlog.Show;

Fine.

  The problem is, when the user clicks on a button on the parent form -
ie. the one that called the text dialog, it comes to the front -
obscuring my text dialog, which I don't want to close (yet).

Help ... is there a way to KEEP a form on the top (ie. visible?).

Thanks,

Roddi

 

Re:Keeping modeless dialog forms on top of calling form


Quote

>Help ... is there a way to KEEP a form on the top (ie. visible?).

Set the form style to fsStayOnTop
_--------------------------------------------------------

Phil Scadden, Scadden Research, P.Scad...@gns.cri.nz
55 Buick St, Petone, Lower Hutt
New Zealand, Ph ++64 4 5687190, fax ++64 4 5695016

Re:Keeping modeless dialog forms on top of calling form


In article <justinm.805969...@bruce.cs.monash.edu.au>

Quote
Roddi Walker <ro...@cs.monash.edu.au> wrote:
>   The problem is, when the user clicks on a button on the parent form -
> ie. the one that called the text dialog, it comes to the front -
> obscuring my text dialog, which I don't want to close (yet).

> Help ... is there a way to KEEP a form on the top (ie. visible?).

Change the FormStyle to fsStayOnTop (use the object inspector to edit the form
you want to have remain on top).

Kendall

Other Threads