Howto get a Delphi Dialog on top of other windows

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

Howto get a Delphi Dialog on top of other windows

Postby dmostert2 » Tue May 29, 2007 8:38 am

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

Postby SteveDude » Tue May 29, 2007 5:48 pm

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

Postby dmostert2 » Thu May 31, 2007 9:04 am

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.


Return to “Technical Support”

Who is online

Users browsing this forum: No registered users and 107 guests