Before all else - I HAVE ordered Mr. Petzold's Big Book (on the 22nd, delivery 6-10 days, of which the six have expired but not the ten, so hope springs eternal ...).
I have a little program with two dialogs, the first modal and the second modeless. The second starts clear and is populated with the appropriate controls according to what is selected on the first.
The "second level" screen comes up very nicely, BUT some of the controls thereon respond as expected, and others not at all. Have tried DIALOG SHOW for this one with callback function specified (and no callback on the ADD CONTROL for the buttons, and also vice versa. No good. No callback, either way.
The WINMAIN function sets up some popup menus and then ends with --
I have a little program with two dialogs, the first modal and the second modeless. The second starts clear and is populated with the appropriate controls according to what is selected on the first.
The "second level" screen comes up very nicely, BUT some of the controls thereon respond as expected, and others not at all. Have tried DIALOG SHOW for this one with callback function specified (and no callback on the ADD CONTROL for the buttons, and also vice versa. No good. No callback, either way.
The WINMAIN function sets up some popup menus and then ends with --
Code:
Local Style As Long Style = %WS_POPUP Or _ %DS_SETFONT Or _ %DS_NOFAILCREATE Or _ %DS_MODALFRAME Or _ %DS_3DLOOK Dialog New 0, "", 0, 63, 530, 315, Style To hDlg& Style = %WS_SYSMENU Or _ %WS_MINIMIZEBOX Dialog New 0, "WINpeAc MAIN MENU", 0, 0, 534, 370, Style, _ %WS_EX_TOPMOST To pDlg& ' ** Add controls to it Call WndProc (pDlg&, %WM_CREATE, 4, 2) '(create decorative toolbar) Menu Attach hMenu, pDlg& '(attach popups) Call MakeMainMenu '(create buttons, FIRST screen) Fa%=0 Dialog Show Modeless hDlg& ', Call hDlgCallBack Dialog Show Modal pDlg&, Call DlgProc ' To result End Function
Comment