I looked up many of the "timed MSGBOX" solutions in the forums, and then wondered why a person could not do a simple "timed error message box" like the attached code does it.
Can anyone see a flaw or caveat to doing one this way?
By the way, the CONTROL SET TEXT statements were needed because the dialog box showed up blank when I put the text in the CONTROL ADD LABEL statements.
Can anyone see a flaw or caveat to doing one this way?
By the way, the CONTROL SET TEXT statements were needed because the dialog box showed up blank when I put the text in the CONTROL ADD LABEL statements.
Code:
DIALOG NEW 0, "My USB Program Error", 0, 0, 200, 45, %DS_CENTER, 0 TO hDlg CONTROL ADD LABEL, hDlg, 998, "", 10, 5, 190, 10 CONTROL ADD LABEL, hDlg, 999, "", 10, 15, 190, 10 DIALOG SHOW MODELESS hDlg DIALOG SHOW STATE hDlg, %SW_RESTORE CONTROL SET TEXT hDlg, 998, "There was a problem opening the USB connection." CONTROL SET TEXT hDlg, 999, "Check the power and USB connections to the display." SLEEP 3000 DIALOG END hDlg
Comment