dbicTabs Send comments on this topic.
Developing with dbicTabs - User Drawn Tab Text

Glossary Item Box

A User Drawn Tab Text allows the developer to take over control of the presentation of the text in individual tabs in the control. 

The User Drawn Tab Text event fires for each tab in the control, allowing the developer to handle the rendering of the text of the tab.  The event passes an e argument that contains the following custom properties …

·        e.Graphics (of type System.Drawing.Graphics): A handle to the graphics object responsible for drawing the control. Through the e.Graphics object the developer has access to the GDI+ methods for drawing objects to a display device.

·        e.PaintText (of type Boolean): Determines if the internal routines of the control should draw the tab text. When the PaintText property is set to False the control does not execute its internal paint routine and the developer has control over the painting of the tab text.

·        e.Selected (of type Boolean): Determines if this is the currently selected tab in the control.

·        e.TabIndex (of type Integer): The index value of the current tab in the control's collection.

·        e.TabPage (of type TabPage): A reference to the TabPage object of the tab being painted.

·        e.TabRect (of type System.Drawing.Rectangle): A rectangle representing the area of the control where the tab was painted. The rectangle is defined by an X,Y coordinate (top left of rectangle) and a width and height of the area being painted.  All values are in pixels.

·        e.TextRect (of type System.Drawing.Rectangle): A rectangle representing the area calculated for displaying the text in the current tab. The rectangle is defined by an X,Y coordinate (top left of rectangle) and a width and height of the area being painted.  All values are in pixels.

·        e.UnderMouse (of type Boolean): Determines if the current tab is under the mouse.