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...")
 
 
(One intermediate revision by the same user not shown)
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 shows cancel selected as default.
<br><br>
+
<br>
  
 
<pre>form = Obj.Create("TMessageBox")
 
<pre>form = Obj.Create("TMessageBox")

Latest revision as of 07:35, 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 shows 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?")