Language Reference Guide : 5. Events : Resized Event
 
Share this page                  
Resized Event
The Resized event is triggered after the user resizes a field that has a bias of FB_RESIZEABLE or FB_FLEXIBLE.
This event has the following syntax:
on resized [fieldname]
fieldname is optional if you specify the event block in a field script.
The following attributes of the FrameExec class can be used in the Resized event block:
TriggerField
Specifies the field with a bias of FB_RESIZEABLE or FB_FLEXIBLE that was resized by the user
OriginatorField
Specifies the field specified in the initial on resized statement
Use the CurFrame system variable to access these attributes. For more information, see FrameExec Class.
Usage: The Resized event is defined for all form fields. This event cannot be specified for menu fields.
The Resized event indicates that a single field has been resized. You can specify the Resized event for a single field if resizing that field must trigger specific code, (for example, to move other fields on the form in response to a resize of a field).
Because this event only works with a single field, you may prefer to place fields in a composite field and specify a ChildResized event on the composite field to detect when the user resizes any of the child fields. For more information about this event, see ChildResized Event.
The Resized event is not triggered when the user resizes the frame's window. Use the WindowResized event to detect resize events on the window itself. For more information about this event, see WindowResized Event.
More information:
OriginatorField Attribute
TriggerField Attribute