Code:
Is it possible to change a DDT-dialog from Modeless to Modal on the fly? or is there some NONO-s involved here --Example-------- Dialog New %HWND_DESKTOP, "Modless Dialog",,,100,100,Style&,ExStyle& To hDlg& --- Dialog show modeless hDlg& ---more code Dialog Doevents ---more code Dialog show modal hDlg& call DlgProc --EndofExample--- If One DDT-dialog have multiple child-dialogs, is this the correct way to handle that situation? --Example---------- Dialog New %HWND_DESKTOP, "Modal Dialog",,,100,100,Style&,ExStyle& To hDlg& Dialog New hDlg&, "Child1", 0, 0,50,100,%WS_CHILD To hDlg1& Dialog New hDlg&, "Child2",50, 0,50,100,%WS_CHILD To hDlg2& Dialog show modeless hDlg1& call DlgProc Dialog show modeless hDlg2& call DlgProc Dialog show modal hDlg& call DlgProc --EndOfExample----- [i]Using Dialog Show State instead of Dialog Show Modeless will not paint correctly that is, messages seems not to be processed in parent dlgProc[/i]
------------------
Fred
mailto:[email protected][email protected]</A>
http://www.oxenby.se
[This message has been edited by Fred Oxenby (edited September 30, 2000).]
Comment