Hi all,
I have a modal form from which I call a detailed form with StayOnTop flag. All works fine but one thing: my form always stays over all other applications. I want it to be topmost but only within my app (if the caller is not modal, everythings ok)
I tried:
Setting FormStyle := fsStayOnTop
and
SetWindowPos(frm.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_SHOWWINDOW or SWP_NOACTIVATE);
The only solution I found yet, is to define the caller as a non-modal form. But I need it to be modal beacuse it returns the user's selection... pitfall...
Thanks in advance,
RC
I have a modal form from which I call a detailed form with StayOnTop flag. All works fine but one thing: my form always stays over all other applications. I want it to be topmost but only within my app (if the caller is not modal, everythings ok)
I tried:
Setting FormStyle := fsStayOnTop
and
SetWindowPos(frm.Handle, HWND_TOPMOST, 0, 0, 0, 0, SWP_NOMOVE or SWP_NOSIZE or SWP_SHOWWINDOW or SWP_NOACTIVATE);
The only solution I found yet, is to define the caller as a non-modal form. But I need it to be modal beacuse it returns the user's selection... pitfall...
Thanks in advance,
RC