Establishes the "true" height of the tab control.

Usage

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

Values

Value can be any positive or negative whole number:

Default: Original height of the tab control.

Remarks

The Height 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 make the tab control as wide as you like, but keep the actual height of the control short enough so it doesn't intersect other controls. Then you set this property to the height you desire, and the tab control performs some special magic to make it appear behind all other controls.

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

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

When using SRP OLE Tab controls, always leave the "Autosize height" option unchecked. Checking it could cause the tab control to intersect other controls.

  • No labels