Language Reference Guide : 5. Events : SeparatorMove Event
 
Share this page                  
SeparatorMove Event
The SeparatorMove event provides information about the new position of a StackField separator when the SeparatorMoving attribute of the StackField is either SM_MANUAL or SM_RESIZE and the user drags and releases a separator.
This event has the following syntax:
on SeparatorMove [stackfield]
Note:  Specifying the stackfield is not necessary if the statement is in a field script.
The following attributes of the FrameExec class and Event class can be used in the SeparatorMove event block:
TriggerField
Specifies the StackField that caused the event
MessageObject
Specifies a SeparatorMoveInfo object that contains information about the event
Usage: This event allows the program to take action when a StackField separator is moved. If the SeparatorMoving attribute is SM_MANUAL, the program must adjust the sizes of the StackField's children. If SeparatorMoving is SM_RESIZE, the StackField child fields are resized automatically.
When the event occurs, the MessageObject is a SeparatorMoveInfo object. The SeparatorMoveInfo object contains two attributes: SeparatorNumber and SeparatorPosition.
SeparatorNumber indicates which StackField separator was moved. If the StackField orientation is FO_HORIZONTAL, the separators are numbered from 1, starting with the leftmost separator. If the orientation is FO_VERTICAL, separators are numbered starting with the topmost separator.
SeparatorPosition specifies the new position of the separator. The position is relative to the left side of the StackField if orientation is horizontal and to the top of the StackField if the orientation is vertical.
More information:
TriggerField Attribute
MessageObject Attribute