Language Reference Guide : Events : ChildSeparatorMove Event
 
Share this page          
ChildSeparatorMove Event
The ChildSeparatorMove event provides information about the new position of a StackField separator when the SeparatorMoving attribute of a StackField is either SM_MANUAL or SM_RESIZE and the user drags and releases a separator.
This event has the following syntax:
on ChildSeparatorMove [compositefield]
The following attributes of the FrameExec class can be used in the ChildSeparatorMove event block:
TriggerField
Specifies the StackField that caused the event
OriginatorField
Specifies the composite field (if any) specified in the ChildSeparatorMove statement
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's 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 orientation is vertical.
More information:
OriginatorField Attribute
TriggerField Attribute
MessageObject Attribute