TextBox Class |
|
Namespace: VO
The TextBox type exposes the following members.
| Name | Description | |
|---|---|---|
| Beep |
A logical value indicating whether to use a system default beep when displaying the text box. TRUE indicates that there will be a beep; FALSE indicates that there will be no beep.
| |
| Caption |
A string value representing the TextBox caption.
| |
| Message |
A string value representing the TextBox message.
| |
| Type |
A constant or combination of constants that indicates which push buttons and/or icons are displayed in the message box
|
1METHOD QueryClose(oEvent) CLASS TopAppWindow 2oTB := TextBox{SELF, "Quit", "Do you really want to quit?"} 3oTB:TYPE := BOXICONQUESTIONMARK + BUTTONYESNO 4IF (oTB:Show() = BOXREPLYYES) 5RETURN TRUE // Quit application. 6ELSE 7RETURN FALSE 8// Don't quit the application. 9ENDIF