Hi,
This Sub Routine worked yesterday before upgrade to PBWIN80 VER 8.04? I think?
Now, the mouse click on [Cancel] button will not close?
This Sub Routine worked yesterday before upgrade to PBWIN80 VER 8.04? I think?
Now, the mouse click on [Cancel] button will not close?
Code:
DIALOG NEW PIXELS, 0, "", , , 660,700, _ %WS_SYSMENU OR %WS_OVERLAPPEDWINDOW OR %WS_CLIPCHILDREN, 0 TO hDlg43 CONTROL ADD GRAPHIC, hDlg43, %ID_FRAM, "", 0, 0, 660, 700 CONTROL ADD BUTTON, hDlg43, %IDC_CAN, "&Cancel",300,670,80,20 GRAPHIC ATTACH hDlg43, %ID_FRAM GRAPHIC RENDER "PICT\BaloonBorder2.bmp", (0, 0)-(660,700) CONTROL ADD TEXTBOX, hDlg43, %IDS_TEXT, "", 45,45,570,680, _ %ES_MULTILINE OR %ES_READONLY OR %ES_AUTOHSCROLL OR %ES_WANTRETURN, %WS_EX_CLIENTEDGE '------------------------------------------------------------------ CALLBACK FUNCTION BirthAnnivCALLBACK() SELECT CASE CBMSG CASE %WM_INITDIALOG ' <- sent right before the dialog is displayed. CONTROL SET FOCUS CBHNDL, %IDC_CAN ' Added 10-10-2007 or button didn't work? CASE %WM_COMMAND ' <- a control is calling SELECT CASE CBCTL ' <- look at control's id CASE %IDCANCEL IF CBCTLMSG = %BN_CLICKED THEN ' end prog on Esc DIALOG END CBHNDL, 0 ' Means go back to SUB BirthAnniv END IF CASE %IDC_CAN ' end prog on Stop [Cancel] IF CBCTLMSG = %BN_CLICKED THEN SLEEP 500 DIALOG END CBHNDL, 1 ' Means go back to SUB BirthAnniv END IF END SELECT END SELECT END FUNCTION
Comment