ue_resized

Description

Occurs when the user changes the bitmap size displayed on the toolbar using the context-sensitive right-click menu. It is fired from the ue_context_size event, which in turn is fired from the menu.

Argument(s)

Name Script Variable Type Passed By Description
old height vl_oldHeight Long Value The previous height of the toolbar
new height vl_newHeight Long Value The new height of the toolbar

Return Values

None

Usage

This event is useful when there are objects that have sizes dependent on the size of the toolbar. Code can be added here to adjust their size and keep the visual presentation to the user correct.

Examples

// In this example a window has two objects, a toolbar is "stacked" directly above a dataWindow
// When the toolbar height is changed, the dataWindow's height must also change

// Move the datawindow based on the toolBar's new height
dw_options.Move(uo_toolBar.X, uo_toolBar.Height)

// Adjust the height of the datawindow also based on the toolBar's new height
dw_options.Resize(uo_toolBar.Width, dw_options.Height - (vl_newHeight - vl_oldHeight)

Last edited Apr 14, 2016 at 4:57 PM by cjharris02892, version 4