Hello,
How is possible to define a Window Modal like a Dialog?.
Thanks.
FWH 11.11, Harbour 3.1 and Borland C++ 5.82
Hello,
How is possible to define a Window Modal like a Dialog?.
Thanks.
Activate Diaog NOWAIT
Hello,
This for non modal dialog.
I want a Window acting Modal as a Dialog.
Thanks.
Please have a look at how rpreview.prg makes a modal window.
EMG
Hello,
Enrico, I am afraid I don´t see how it works.
Any clue please?.
Thanks.
if ::oDevice:lPrvModal
if ::oWndMain == nil
StopUntil( { || ::lExit } )
else
StopUntil( { || ::lExit .or. !IsWindow( WndMain():hWnd ) } )
endif
endifThanks.
I didn´t know about StopUntil()
John,
The risk of calling SysRefresh() (StopUntil() uses it) is that it could process an unwanted event.
So an alternative solution to simulate a modal window is to disable the other windows where we don't want the focus to go to:
oWndOther:Disable()
...
oWndOther:Enable()