The custom color of the tab pane when there are no tabs.

Usage

Set_Property(OLECtrlEntID, "OLE.CustomPaneColor", ColorFill)

Values

Any valid ColorFill value.

Default: "None"

Remarks

The CustomPaneColor property established a custom color for the tab pane in those circumstances in which you are using our Tab control only as a backdrop (or possibly groupbox) behind other controls. By default, the tab pane is themed, so for this to work, you must turn off the AllowXPTheme property. Once that is done, you may set this to any ColorFill value you wish. Then arrange the tab control to create a nice contrasting section on your form.

Optionally, you may also use this property in conjunction with FillParentBackground in order to use our ColorFill technology to colorize the parent form's entire background.

Use the TabColors property if you are using the Tab control as an actual tab control and wish to provide a custom theme. That property allows you to set the pane color for each tab so that the pane will match the active tab.

Example

// Set the default pane color to shiny red
Set_Property(@Window:".OLE_TAB", "OLE.AllowXPTheme", 0)
Set_Property(@Window:".OLE_TAB", "OLE.CustomPaneColor", "Vertical(Gradient(Red L=90, Red L=80, 30%), Gradient(Red L=75, Red L=80), Border(Red))")

See Also

AllowXPThemeColorFillFillParentBackgroundTabColors

  • No labels