Syntax
| PushButton X, Y, DX, DY, Title$[, .Field]
| ||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Description
| Define a push button item. Pressing the push button updates the dlgvar field values and closes the dialog. (Dialog function call returns the push button's ordinal number in the dialog. The first push button returns 1.)
| ||||||||||||||
See Also
| |||||||||||||||
Example
| Sub Main
Begin Dialog UserDialog 200,120
Text 10,10,180,30,"Please push the DoIt button"
OKButton 40,90,40,20
PushButton 110,90,60,20,"&Do It"
End Dialog
Dim dlg As UserDialog
Debug.Print Dialog(dlg)
End Sub
|