Web Message box
Ancestors - Object (PRIM_OBJT)
The Web Message Box is a formatted message box allowing Captions and an Image to be a 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.
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
Name | Description |
---|---|
Buttons | Buttons to show on the message box |
ButtonStyle | Style to be applied to the message box buttons |
ButtonStyles | Collection of styles to apply to the message box buttons |
Caption | Caption to be shown |
Captions | Collection of captions to be shown |
CaptionStyle | Style to be applied to the message box captions |
CaptionStyles | Collection of styles to apply to the captions |
ComponentClassName | ComponentClassName is the name of the component's class. Inherited from Object (PRIM_OBJT) |
ComponentMembers | ComponentMembers provides access to all the member components of this component Inherited from Object (PRIM_OBJT) |
ComponentPatternName | ComponentPatternName is used to qualify the class of the component. Inherited from Object (PRIM_OBJT) |
ComponentTag | Generic space allowing a value to be stored for the instance Inherited from Object (PRIM_OBJT) |
ComponentType | ComponentType gives you access to the type information about the component Inherited from Object (PRIM_OBJT) |
ComponentTypeName | ComponentTypeName is the fully qualified name of the component's class. Inherited from Object (PRIM_OBJT) |
CustomImage | User defined image to display |
Image | Choice of images e.g. Error, Exclamation etc. |
Name | Name identifies the component Inherited from Object (PRIM_OBJT) |
Owner | Owner owns this component Inherited from Object (PRIM_OBJT) |
Parent | 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 | Result containing the name of the button pressed |
Title | Title of message box |
Name | Description |
---|---|
Closed | Fired when the message box is closed |
CreateInstance | CreateInstance is signalled when an instance of a component is created Inherited from Web Message Box (PRIM_WEB.MessageBox) |
DestroyInstance | DestroyInstance is signalled when an instance of a component is about to be destroyed Inherited from Web Message Box (PRIM_WEB.MessageBox) |
Name | Description |
---|---|
Show | Show the message box |
Febuary 18 V14SP2