How to highlight selected resources.


Implement a hander for the OnDrawResourceName event and set the Color and BkColor used to paint the resource name. This example uses the resource's Tag property, but you could use any criteria to select the colours.

Screen shot
procedure TForm1.RACDrawResourceName(Sender: TObject;
                                     Resource: TssResource;
                                     var Color, BkColor: TColor);
begin
  if Resource.Tag = 1 then begin
    Color := clHighlightText;
    BkColor := clHighlight;
  end;
end;

Note: This event handler can be invoked many times a second while the user is dragging the chart. It is important that it completes quickly in order to maintain a responsive user experience.

What People Say

I must say that you've done a really good job with the component!!!
Robert Karkulowski, Eye Soft
More …

No malware No spam
McAfee Site Report
Web of Trust