RolloutCreator is a structure of functions for dynamically creating rollouts. The functions are implemented by a script located under stdplugs\stdscripts\baseLib\rolloutCreator.ms
Here are the implemented functions and their usage:
Creates an instance of rolloutCreator, assign it to a variable,
This function needs to be called immediately after the instance is created, this does the initialization
Adds a control to the rollout:
can be any of named rolloutControls eg: #button, #spinner, #activeXControl etc.
variable name of the control by which it is referred eg: #btnButton
caption of the control "My Button"
an optional string representation of all the keyword parameters that needs to be passed to the control, for example: "width:100 height:20 align:#right"
<rollout_creator>.addHandler <control_name> <event_type> [paramStr:<string>] [codeStr:<string>] [filter:<boolean>]
Adds an event handler for the controls previously added:
the variable passed during the control creation
any of the events supported by the control, eg: #changed, #pressed, #selected
a string representation of the event handler code, if the string contains sub-strings, enclose them in two '@' characters and pass on\true to the filter: parameter
This function has to be called whenever all the required controls and their event handlers are called. This function forms the rollout string, evaluates it and returns the definition which can be passed to createDialog and addRollout functions.
This function can be used to add local variables to the rollout definitions. The variable’s value can be initialized by passing the init: value
Specifies initialization value of local
This function is useful for adding functions to the rollout definitions. If the string contains sub-strings, enclose them in two '@' characters and pass true to the filter : parameter
String added to rollout definition.