Standard dialogs
Ready-made panels for use in standard dialogs are held in the directory panels/vision. The following panels are available:
-
MessageInfo
-
MessageInfo1
-
MessageInfo3
-
MessageInput
-
MessageStop
The panels are opened with different functions depending on the possible return values. The function ChildPanelOn...Return opens the following:
Panel name | Parameters | Return value |
MessageInfo |
$1: Text for display $2: Text for left button $3: Text for right button |
1 and "true" if left button pressed 0 and "false" if right button pressed |
MessageInfo1 | $1 Text for display | No return value |
MessageInfo3 |
$1: Text for display $2: Text for the left button $3: Text for the centre button $4: Text for the right button |
1 and "true" if left button pressed 0 and "false" if center button pressed 2 and "cancel" if right button pressed |
MessageInput |
$1: Text for display $2: input field format (e.g.: "%6.2f") $3: input field contents |
if OK pressed: floating point number if numerical value (resultText is empty), string if not numerical value (resultFloat is empty) if Cancel pressed: original value without change |
MessageStop |
$1: Text for display $2: Text for the left button $3: Text for the right button |
1 and "true" if left button pressed 0 and "false" if right button pressed |
MessageWarning | $1: Text for display | |
MessageWarning2 |
$1: Text for display $2 Text for the left button $3 Text for the right button |
1 and "true" if left button pressed 0 and "false" if right button pressed |
The following panels are opened with the function ChildPanelOn... :
Panel name | Parameters | Return value | ||
MessageWarning | $1: Text for display | No return value | ||
MessageWarning2 |
$1: Text for display $2 Text for the left button $3 Text for the right button |
1 and "true" if left button pressed 0 and "false" if right button pressed |