Delphi/CB
•  Greatis •  Security •  AppDatabase •  Utilities •  Visual Basic • .NET •  just4fun
Delphi / C++ Builder
Components, utilities and tips for Delphi and C++ Builder developers
More info
Object Inspector FAQ
Object Inspector Home
Delphi Components
See also
Products
Form Designer
Runtime Fusion
Print Suite
Commented Image
Image Editor  new!
Delphi Toys
Ultimate Pack  hot!

FAQs
Form Designer FAQ
Print Suite FAQ
Image Editor FAQ

Links
Software for .NET
Software for VB 6
Delphi Tips & Tricks

Services
Outsourcing
Color and font customization
Color and font of the name and value areas in TCommonInspector can be changed by OnGetNameColor, OnGetNameFont, OnGetValueColor and OnGetValueFont events:
var
  BackColors: array[0..3] of TColor = (clNavy,clMaroon,clGreen,clOlive);
  FontColors: array[0..3] of TColor = (clBlue,clRed,clLime,clYellow);

...

procedure TForm1.CommonInspector1GetNameColor(Sender: TObject;
  TheIndex: Integer; var Value: TColor);
begin
  Value:=BackColors[TheIndex mod 4];  
end;

procedure TForm1.CommonInspector1GetNameFont(Sender: TObject;
  TheIndex: Integer; const TheFont: TFont);
begin
  TheFont.Color:=FontColors[TheIndex mod 4];
end;

procedure TForm1.CommonInspector1GetValueColor(Sender: TObject;
  TheIndex: Integer; var Value: TColor);
begin
  Value:=clInfoBk;
end;
Note that the value font color cannot be changed.

Greatis Software Greatis | Security | AppDatabase | Utilities | Delphi/CB | Visual Basic | .NET | just4fun

Contacts | Add to Favorites | Recommend to a Friend | Privacy Policy | Copyright © 1998-2008 Greatis Software