Skip to content

TrackPaintManager Object

Description

Handles most of the drawing activities of the TrackControl.

For a list of all members defined in this module, see TrackPaintManager members.

Object Model

TrackPaintManager Object Model
Parent Child Diagram
Glyphs
Parent Across Diagram
Get Image

Remarks

The TrackPaintManager object stores all settings needed to change the look and feel of the TrackControl. You can set the fonts, colors, and styles for the different objects in the TrackControl.

You can use this object to provide several different "skins" for your TrackControl.

The TrackPaintManager object stores the settings for things such as:

  • Caption, Normal Text, and Preview Text fonts
  • Grid Lines Styles
  • Shade Group Headings
  • Shade sorted columns
  • Column Styles
  • Text displayed in the "Group By" box when empty
  • Text displayed when there are no items to show in the GridControl
  • Set maximum number of preview lines when in preview mode
  • Set the indentation of preview lines when in preview mode

Track Control Specific Settings

  • AlternativeBackgroundColor: The color used for alternating rows when UseAlternativeBackground is true. Handy for alternating row color.
  • Marker: Sets the color used to draw Markers in the Time Line.
  • ScrollBarDark: Dark color in a color gradient used to draw the WorkArea and TimeLine scroll bars.
  • ScrollBarLight: Light color in a color gradient used to draw the WorkArea and TimeLine scroll bars.
  • SelectedArea: Color used to draw the "Selected Area". This is the color of the selection rectangle that is drawn when the mouse is clicked and dragged to select multiple blocks and keys.
  • TimeHeaderDark: Color used to draw the TimeLine header area. This is the area visible under the WorkArea slider and TimeLine Text.
  • TimeHeaderDivider: Color used to draw the TimeLine header divider. This is the divider between the TimeLine header and the area above and normal grid columns if they are added.
  • TimeHeaderDarkDark: Color used to draw the TimeLine header area shadow. This is the line that can be seen around the edges of the TimeLine header.
  • TimeSliderBackground: Color used to draw the TimeLine scrollbar/slider background area. This is only the area behind the TimeLine slider bar.
  • TrackHeader: Color used to draw the TimeLine track area. This is the area that is drawn above grid columns (to the left/right of track area) if columns are added.
  • TrackTimeArea: Color used to draw the background of TimeLine header area behind the time text.
  • WorkArea: Color used to draw the "Selected Area" for the WorkArea.

Example

TrackControl.PaintManager.VerticalGridStyle = xtpGridSolid  
TrackControl.PaintManager.HorizontalGridStyle = xtpGridSolid  

TrackControl.PaintManager.HeaderRowsDividerStyle = xtpGridFixedRowsDividerBold  
TrackControl.PaintManager.FooterRowsDividerStyle = xtpGridFixedRowsDividerBold  
TrackControl.PaintManager.HeaderRowsDividerColor = RGB(0, 255, 0)  
TrackControl.PaintManager.FooterRowsDividerColor = RGB(0, 0, 255)  

TrackControl.PaintManager.ColumnWidthWYSIWYG = True  

TrackControl.PaintManager.DrawGridForEmptySpace = True  

TrackControl.PaintManager.BackColor = RGB(166, 166, 166)  
TrackControl.PaintManager.UseAlternativeBackground = True  
TrackControl.PaintManager.AlternativeBackgroundColor = RGB(160, 160, 160)  
TrackControl.PaintManager.HighlightBackColor = RGB(145, 145, 145)  
TrackControl.PaintManager.SelectedRowBackColor = RGB(145, 145, 145)  
TrackControl.PaintManager.GroupForeColor = RGB(255, 255, 255)  

TrackControl.PaintManager.GridLineColor = RGB(193, 193, 193)  

TrackControl.PaintManager.ColumnStyle = xtpColumnResource  
TrackControl.PaintManager.ColumnOffice2007CustomThemeBaseColor = RGB(122, 122, 122)  

TrackControl.PaintManager.ColumnPushedGradientColorDark = RGB(169, 169, 169)  
TrackControl.PaintManager.ColumnPushedGradientColorLight = RGB(193, 193, 193)  
TrackControl.PaintManager.ColumnHotGradientColorLight = RGB(193, 193, 193)  
TrackControl.PaintManager.ColumnHotGradientColorDark = RGB(169, 169, 169)  

TrackControl.PaintManager.CaptionBackGradientColorDark = RGB(169, 169, 169)  
TrackControl.PaintManager.CaptionBackGradientColorLight = RGB(193, 193, 193)  

TrackControl.PaintManager.ColumnShadowGradient = RGB(122, 122, 122)  

TrackControl.PaintManager.FreezeColsDividerColor = RGB(122, 122, 122)  
TrackControl.PaintManager.FreezeColsDividerStyle = xtpGridFreezeColsDividerBold  

TrackControl.PaintManager.GroupBoxBackColor = RGB(166, 166, 166)  
TrackControl.PaintManager.GroupByNoItemsTextColor = 0  
TrackControl.PaintManager.GroupShadeBackColor = RGB(166, 166, 166)  

TrackControl.PaintManager.ShadeSortColumn = False  

TrackControl.PaintManager.WorkArea = RGB(175, 175, 175)  

TrackControl.PaintManager.TrackHeader = RGB(166, 166, 166)  
TrackControl.PaintManager.TrackTimeArea = RGB(166, 166, 166)  

TrackControl.PaintManager.TimeHeaderDarkDark = RGB(70, 70, 70)  
TrackControl.PaintManager.TimeHeaderDark = RGB(122, 122, 122)  
TrackControl.PaintManager.TimeSliderBackground = RGB(96, 96, 96)  

TrackControl.PaintManager.TimeHeaderDivider = RGB(146, 146, 146)  

TrackControl.PaintManager.ScrollBarLight = RGB(210, 210, 210)  
TrackControl.PaintManager.ScrollBarDark = RGB(190, 190, 190)  

TrackControl.PaintManager.Marker = RGB(217, 217, 217)  
TrackControl.PaintManager.SelectedArea = RGB(70, 70, 70)  

TrackControl.ToolTipContext.Style = xtpToolTipResource

See Also


Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.