Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

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

Usage

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

...

The CustomPaneColor property established a custom color for the tab pane that is unique to your needs. The tab pane is the are where control reside, which excludes the tabs themselvesin 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. Note also, however, that the TabColors . 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, if you have a green tab, you can make the pane turn green only when that tab is selected. You would use this property more as a fallback default color to be used for all panes that don't specify their own pane colorso that the pane will match the active tab.

Example

Code Block
// 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