Click or drag to resize

InfoBox Class (Typed)

X#
Present the user with informational message box.
Inheritance Hierarchy
Object
  VObject
    TextBox
      InfoBox

Namespace:  XSharp.VO.SDK
Assembly:  XSharp.VOGUIClasses (in XSharp.VOGUIClasses.dll) Version: 2.21
Syntax
 CLASS InfoBox INHERIT TextBox
Request Example View Source

The InfoBox type exposes the following members.

Constructors
  NameDescription
Public methodInfoBox
Construct an information message box.
Top
Properties
  NameDescription
Public propertyBeep
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.
(Inherited from TextBox.)
Public propertyCaption
A string value representing the TextBox caption.
(Inherited from TextBox.)
Public propertyMessage
A string value representing the TextBox message.
(Inherited from TextBox.)
Public propertyType (Inherited from TextBox.)
Top
Functions
  NameDescription
Public methodDestroy
Free memory resources allocated for a VObject object and its derived objects.
(Inherited from VObject.)
Public methodShow
Display this message box and return a value indicating how it was closed.
(Inherited from TextBox.)
Top
Globals and Defines
  NameDescription
Public fieldoCargo
Cargo slot.
(Inherited from VObject.)
Top
Remarks
An informational message box is a window that displays a user-defined caption in the title bar, the text of the informational message, and an information icon. These boxes are typically used to provide useful information to the user. When the information box disappears, focus is returned to the owner window.
Tip Tip
An information box is application modal—the user must acknowledge it before continuing with the application.
Examples
The following example displays an information box:
X#
1METHOD Start() CLASS App
2oMyWin := TopAppWindow{}
3oMyWin:Show()
4oSomeInfo := InfoBox{oMyWin, "Info", "Message box"}
5oSomeInfo:Show()
6SELF:Exec()
See Also