Web Message Box (PRIM_WEB.MessageBox)
Web Message box
Ancestors - Object (PRIM_OBJT)
Details
The Web Message Box is a formatted message box allowing Captions and an Image to be shown.
Despite appearing to be modal, the runtime will continue once the message box has been shown. It is therefore necessary to store the Result as a property.
Message Box should be defined at the top of the code.
Example
In this example, the message box presents a Yes or No option.
The button is updated with the result.
Begin_Com Role(*EXTENDS #PRIM_WEB)
Define_Com Class(#prim_web.messageBox) Name(#MessageBox) Caption('Continue?') Buttons(YesNo) Image(Question) Define_Com Class(#PRIM_PHBN) Name(#Button) Caption('Continue?') Displayposition(1) Left(154) Parent(#COM_OWNER) Tabposition(1) Top(53) Evtroutine Handling(#Button.Click)
#MessageBox.Show
Endroutine
Evtroutine Handling(#MessageBox.Closed)
#Button.Caption := #MessageBox.Result
Endroutine
End_Com
Properties
Name | Description |
|---|---|
Buttons to show on the message box | |
Style to be applied to the message box buttons | |
Collection of styles to apply to the message box buttons | |
Caption to be shown | |
Collection of captions to be shown | |
Style to be applied to the message box captions | |
Collection of styles to apply to the captions | |
ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT) | |
ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT) | |
ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT) | |
Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT) | |
ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT) | |
ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT) | |
User defined image to display | |
Choice of images e.g. Error, Exclamation etc. | |
Name identifies the component Inherited from Object (PRIM_OBJT) | |
Owner owns this component Inherited from Object (PRIM_OBJT) | |
The component instance to which this instance is attached. The visual container for a control or the collector of a set of child instances Inherited from Object (PRIM_OBJT) | |
Result containing the name of the button pressed | |
Title of message box |
Events
Name | Description |
|---|---|
Fired when the message box is closed | |
CreateInstance is signaled when an instance of a component is created [Inherited from Web Message Box (PRIM_WEB.MessageBox) | |
DestroyInstance is signaled when an instance of a component is about to be destroyed [Inherited from Web Message Box (PRIM_WEB.MessageBox) |
Methods
Name | Description |
|---|---|
Show the message box |