FbOpenDialogExtended (FB)¶
FUNCTION_BLOCK FbOpenDialogExtended EXTENDS FbOpenDialog
Handles the action open dialog with extended parameters
To use this function block in the programm set the according inputvalues
and start the dialog open action with xExecute = TRUE.
- InOut:
Scope
Name
Type
Initial
Comment
Inherited from
Input
itfClientFilterWith this filter, the clients, where the action should happen, are specified.
Use standard filter from GVL Globals, e.g.
VU.Globals.CurrentClient, or use a own implentation of the interface.FbExecuteSingleVisuActionBase
Output
eErrorFbExecuteSingleVisuActionBase
Input
sDialogNameSTRINGMandatory value: name of the dialog
xModalBOOLTRUE
Optional setting for dialog usage (modal or not modal).
TRUE: modal: only input in the dialog is possible (defaultvalue)FALSE: not modal: usage of visu beneath dialog is possible, too.pTopLeftPositionPOINTER TO VisuStructPoint
Optional position to open:
centered (default): use no input point
on position X/Y: set values accordingly in the VisuStructPoint
itfDialogOpenedListenerVisuElemBase.IDialogOpenedListenerOptional: Action done listener
The FB instance gets notified, when the dialog has opened.
pbyDialogInterfaceDataPOINTER TO BYTE
Optional: Sets the parameters for the dialog interface.
Should be used together with
udiDialogInterfaceDataSize.For each dialog automatically a structure is generated.
E.g. DialogName: MessagBox –> Structure name: MessageBox_VISU_STRUCT.
Use a instance of this struct, e.g. dialoginst : MessageBox_VISU_STRUCT and set it as ADR(dialoginst) for this variable
udiDialogInterfaceDataSizeUDINTOptional: Sets the size of the data for the dialog interface.
Should be used together with
pbyDialogInterfaceDataFor each dialog automatically a structure is generated.
E.g. DialogName: MessagBox –> Structure name: MessageBox_VISU_STRUCT.
Use SIZEOF(MessageBox_VISU_STRUCT) for this variable.
itfDialogCloseListenerVisuElemBase.IDialogCloseListenerOptional: Dialog close listener
The FB instance gets notified, when the dialog is closed.
pbyTagForDialogClosedPOINTER TO BYTE
Optional: Tag/Data which is necessary for the action on dialog closed.
Can only be used together with
itfDialogCloseListenerThe optional parameter
itfDialogCloseListenermust implementIDialogCloseListenerWithTag. InDialogClosedWithTagit will get this parameter (pbyTagForDialogClosed) back aspTag