Difference between revisions of "TMessageBox.Button"

From OpenEUO
Jump to: navigation, search
(Created page with "Set this to a number to choose options for the message box: 0 - OK 1 - OK/CANCEL 2 - ABORT/RETRY/IGNORE 3 - YES/NO/CANCEL 4 - YES/NO 5 - RETRY/CANCEL 6 - CANCEL/TRY AGAIN/CONTIN...")
 
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
Set this to a number to choose options for the message box:
+
You can set TMessageBox.Button to any of the values listed below. <br>The appropriate buttons will appear on your Message Box once you use the Show() command.<br><br>
  
0 - OK
+
0 - OK<br>
1 - OK/CANCEL
+
1 - OK/CANCEL<br>
2 - ABORT/RETRY/IGNORE
+
2 - ABORT/RETRY/IGNORE<br>
3 - YES/NO/CANCEL
+
3 - YES/NO/CANCEL<br>
4 - YES/NO
+
4 - YES/NO<br>
5 - RETRY/CANCEL
+
5 - RETRY/CANCEL<br>
6 - CANCEL/TRY AGAIN/CONTINUE
+
6 - CANCEL/TRY AGAIN/CONTINUE<br>
 +
<br>
  
[code]
+
<pre>form = Obj.Create("TMessageBox")
form = Obj.Create("TMessageBox")
+
 
form.Button = 4
 
form.Button = 4
 
form.Title = "Brian G's Tree Chopper"
 
form.Title = "Brian G's Tree Chopper"
form.Show("Path file not found!\nWould you like to make a new one right now?")
+
form.Show("Path file not found!\nWould you like to make a new one right now?")</pre>
[/code]
+

Latest revision as of 07:30, 17 October 2011

You can set TMessageBox.Button to any of the values listed below.
The appropriate buttons will appear on your Message Box once you use the Show() command.

0 - OK
1 - OK/CANCEL
2 - ABORT/RETRY/IGNORE
3 - YES/NO/CANCEL
4 - YES/NO
5 - RETRY/CANCEL
6 - CANCEL/TRY AGAIN/CONTINUE

form = Obj.Create("TMessageBox")
form.Button = 4
form.Title = "Brian G's Tree Chopper"
form.Show("Path file not found!\nWould you like to make a new one right now?")