Class LM_SimpleDialog

Parent class: LM_Dialog

Version added: before 9.5
The LM_SimpleDialog class is used to create dialog boxes - windows that can be filled with other user interface controls. An LM_SimpleDialog object automatically provides OK and Cancel buttons. To create a new object of this class, use the LM.GUI.SimpleDialog method.

Methods:

Name Returns Description Version added
DoModal int32 Displays the dialog box on screen in a modal fashion (meaning that nothing else will happen in Moho until the user presses OK or Cancel in the dialog) before 9.5
DoModeless void Displays the dialog box on screen in a modeless fashion (meaning that the user is free to work in other parts of the Moho application while the dialog is open) before 9.5
GetLayout LM_LayoutView before 9.5
HandleMessage void This function is called when a user interface object in the dialog sends a message before 9.5
OnOK void This function is called if the user presses the dialog's OK button before 9.5
OnValidate bool This function is called if the user presses the dialog's OK button before 9.5
UpdateWidgets void This function is called when the user interface controls need to be updated before 9.5
Validate bool Tests that the value of a numerical text field falls within a certain range before 9.5