Howto get a Delphi Dialog on top of other windows

Got a problem you cannot solve? Try here.
Post Reply
dmostert2
Posts: 23
Joined: Fri May 11, 2007 6:09 am

Howto get a Delphi Dialog on top of other windows

Post by dmostert2 »

Hi,

I'm calling a Delphi DLL very early in my installation - even before the "Welcome Screen". This DLL displays a dialog but it is always behind the other windows on the desktop?

I've tried BringToFront, FormStyle = fsStayOnTop and other stuff in the, Delphi Code, but nothing seems to work??? :(

Any suggestions?

Thanks,
D.
SteveDude
Posts: 253
Joined: Wed Apr 11, 2007 6:07 pm

SetWindowPos

Post by SteveDude »

Did you try using the SetWindowPos API and the HWND_TOPMOST flag? Should work, unless some other dialog set's it after yours.
dmostert2
Posts: 23
Joined: Fri May 11, 2007 6:09 am

Post by dmostert2 »

Hi,

I found a fairly simple solution: I'm showing the "Welcome" screen before I call my DLL......

Now for a next question: Is it at all possible to extend the current forms / dialogs with 3rd party components or ActiveX? I would like to include a Date editor on a form and currently it would seem that forms in Delphi is the only possible route???

Thanks,
D.
Post Reply