Difference between revisions of "TMessageBox.Default"

From OpenEUO
Jump to: navigation, search
(Created page with "You can set TMessageBox.Default to the value of the button you'd like selected as default<br> 0 is always the left-most button and the selection moves right as the number increas...")
 
Line 1: Line 1:
 
You can set TMessageBox.Default to the value of the button you'd like selected as default<br>
 
You can set TMessageBox.Default to the value of the button you'd like selected as default<br>
0 is always the left-most button and the selection moves right as the number increases.<br>
+
0 is always the left-most button and the selection moves right as the number increases.<br><br>
 
The example below show cancel selected as default.
 
The example below show cancel selected as default.
<br><br>
+
<br>
  
 
<pre>form = Obj.Create("TMessageBox")
 
<pre>form = Obj.Create("TMessageBox")

Revision as of 07:34, 17 October 2011

You can set TMessageBox.Default to the value of the button you'd like selected as default
0 is always the left-most button and the selection moves right as the number increases.

The example below show cancel selected as default.

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