VxCenterVertically(VTCL)

VxCenterVertically(VTCL)


VxCenterVertically -- set to offset of source widget to line up with center line of target widget

Syntax

VxCenterVertically targetWidget sourceWidget

Description

Given two widgets which have been created with the sourceWidget positioned via -alignTop relative to the targetWidget, this sets the top offset of the sourceWidget so that the targetWidget is in the center.

Options

targetWidget
The widget you are centering around.

sourceWidget
The widget that will be adjusted.