Page 1 of 1

Howto get a Delphi Dialog on top of other windows

Posted: Tue May 29, 2007 8:38 am
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.

SetWindowPos

Posted: Tue May 29, 2007 5:48 pm
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.

Posted: Thu May 31, 2007 9:04 am
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.