Establishes the "true" width of the tab control.

Added in 4.1.15

Usage

Set_Property(OLECtrlEntID, "OLE.Width", Value)

Values

Value can be any positive or negative whole number:

Default: Original width of the tab control.

Remarks

The Width property helps developers overcome the limitation of having multiple controls occupying the same space. Normally, if two OI or OLE controls intersect one another, unpredictable artifacting occurs. For this reason, you cannot make the tab control as big as you want and then place other controls on top of it. Instead, you size the tab to fit just the tabs. Then you set this property to the width you desire, and the tab control performs some special magic to make it appear behind all other controls.

This is useful when you want to place custom buttons or links to the right of the tabs just above the pane.

For static widths, set this property to a positive value. For instance, a value of 100 will ensure that the control is always 100 pixels wide.

To simulate auto width, set this property to a negative value. A negative value indicates the number of pixels from the right of the form's client area to the right of the tab's pane. For instance, a value of -10 will ensure that the tab control will always stretch from the left of the tab control to 10 pixels before the form's right edge. This is, in effect, the replacement for the OI "Autosize width" feature.

When using this property, leave the "Autosize width" option unchecked in the Form Designer. Checking it could cause the tab control to intersect other controls.

  • No labels