JVCL Help:TJvModernTabBarPainter

From Project JEDI Wiki
Jump to navigationJump to search
JEDI Visual Component Library Help

Search in JVCL Help

 
Search in all projects
 

Class Hierarchy

TJvTabBarPainter
TJvModernTabBarPainter
run\JvTabBar.pas


Summary

Implements the Modern drawing style for rendering tabs on a tabbed-bar control.

run\JvTabBar.pas


Pascal

 run\JvTabBar.pas
 TJvModernTabBarPainter = class(TJvTabBarPainter);


Description

  1. JVCLInfo

TJvModernTabBarPainter is a TJvTabBarPainter descendant that implements a component used to measure and render tabs defined in a TJvCustomTabBar control.
TJvModernTabBarPainter implements a specific drawing style that features separate fonts and colors for Selected and Disabled tabs on a TJvCustomTabBar control. This includes drawing close buttons on tabs using different colors for modified versus unmodified tabs. The drawing style is defined using the properties introduced in the renderer, including:

Color
BorderColor
DividerColor
TabColor
ControlDivideColor
CloseColor
CloseColorSelected
CloseCrossColor
CloseCrossColorDisabled
CloseCrossColorSelected
CloseRectColor
CloseRectColorDisabled
ModifiedCrossColor
MoveDividerColor
Font
DisabledFont
SelectedFont


The Create constructor allocates the resources required for properties in the class instance, and sets the default property values for the Modern drawing style.
TJvModernTabBarPainter implements abstract virtual methods declared in the ancestor class, including:

DrawBackground
DrawTab
DrawDivider
DrawMoveDivider
GetDividerWidth
GetTabSize
GetCloseRect
Options


Assign a TJvModernTabBarPainter instance to the Painter property in TJvCustomTabBar to use the Modern drawing style when rendering tabs.

run\JvTabBar.pas


See Also

TJvTabBarPainter, TJvCustomTabBar.Painter

run\JvTabBar.pas


About

Navigation

run\JvTabBar.pas



Contribute to this help topic

This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page