The SDL Component Suite is an industry leading collection of components supporting scientific and engineering computing. Please visit the SDL Web site for more information....



OnBeforeShowObjLabel


Unit:SDL_dendrogram
Class:TDendrogram
Declaration:property OnBeforeShowObjLabel: TDendroShowObjLblEvent;
{ TDendroShowObjLblEvent = procedure (Sender: TObject; Obj: integer; var Text: string; var Color: TColor) of object; }

The event OnBeforeShowObjLabel occurs immediately before an object label is drawn on the dendrogram canvas. The parameter Obj contains the index of the object in the data table Data, the variable parameter Text contains the text to be displayed. The color of the displayed text can be controlled by the parameter Color.

Hint: Depending on whether the Font of the dendrogram is a TrueType font or not, the object labels for upward and downward oriented dendrograms are displayed in two different ways. If the font is a TrueType font, the labels are rotated by 90 degrees, if not the labels are left unrotated but are displayed in a staggered mode (given that the Margin is big enough - the number of staggered lines depends on the height of the label area). Following is an example of rotated and staggered object labels:



Last Update: 2023-Dec-13