TextBox Class (Typed)
|
|
Present the user with a text message box.
Inheritance Hierarchy
Namespace:
XSharp.VO.SDK
Assembly:
XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.24 GA
SyntaxThe TextBox type exposes the following members.
Constructors
Properties|
| 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 | |
Top
Functions|
| Name | Description |
 | Show |
Display this message box and return a value indicating how it was closed.
|
Top
Remarks
A message box is a small window that displays a caption, a message, an icon (chosen from a predefined set of icons), and push buttons (selected from a variety of predefined combinations). It provides an easy alternative to the dialog window when all you require from the user is a simple response.
Message boxes require no sizing, positioning, or event handling. In addition, message boxes can be application modal (no processing can continue in the application until the user has acknowledged the message box), or it can be modal in relation to its owner window (no processing can continue in its owner window until the user has acknowledged the message box).
Examples
The following example handles a QueryClose event:
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
6ELSE
7RETURN FALSE
8
9ENDIF
See Also