<< Click to Display Table of Contents >> Command buttons |
The OK and Cancel buttons are known as command buttons.
Note: Every dialog must contain at least one command button.
Syntax:
OKButton X, Y, Width, Height
CancelButton X, Y, Width, Height
Example:
Sub Main
Begin Dialog ButtonSample 16, 32, 180, 96, "OK and Cancel"
OKButton 132, 8, 40, 14
CancelButton 132, 28, 40, 14
End Dialog
Dim Dlg1 As ButtonSample
rc% = Dialog (Dlg1)
End Sub