| View previous topic :: View next topic |
| Author |
Message |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Mon Sep 30, 2002 1:25 pm Post subject: Check box to turn off info boxes |
|
|
if @file("C:\WINDOWS\Winfile.exe")
RUN "C:\WINDOWS\Winfile.exe"
REM Need a check box on main dialog window that will stop the next two REM lines from running
Info Windows 98 "WinFIle" Program BLAH BLAH BLAH!
Info Windows 98 "WinFIle" Program BLAH BLAH BLAH!
ELSE
Info Windows 98 "WinFIle" Program not installed or not in expected directory!
END
goto Main_evloop
ALL FEED BACK WELCOMED
Mike |
|
| Back to top |
|
 |
Dr. Dread Professional Member


Joined: 03 Aug 2001 Posts: 1065 Location: Copenhagen, Denmark
|
Posted: Mon Sep 30, 2002 1:47 pm Post subject: |
|
|
Shouldn't be too hard. Add a check box dialog element to your program and then check for the status of it before executing those 2 lines.
Something like
| Code: | rem Checkbox named chkbox
if @null(@dlgtext(chkbox))
rem Not checked: run those lines
info BLA-BLA
info BLA-BLA2
end |
Greetz
Dr. Dread _________________ ~~ Alcohol and calculus don't mix... Don't drink and derive! ~~
String.DLL * advanced string processing |
|
| Back to top |
|
 |
noveltech Contributor

Joined: 16 Sep 2002 Posts: 105
|
Posted: Wed Oct 02, 2002 8:44 pm Post subject: Thank You |
|
|
Thank you Dr. Dread
Works very fine! |
|
| Back to top |
|
 |
|