FYI, in ExtCtrls there is a function called

Frame3D

procedure Frame3D(Canvas: TCanvas; var Rect: TRect;   TopColor, BottomColor:
TColor; Width: Integer);

That is great for drawing borders.  It's all I use.

Sunken, Raised, Flat

It just depends on your values for TopColor, BottomColor


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Behalf Of Richard R
Sent: Sunday, December 18, 2005 6:14 PM
To: Delphi-Talk Discussion List
Subject: Re: custom progress bar


Thanks for your insight. I obviously have a lot to learn still. I used
DrawEdge instead of DrawFrameControl because it allows customizing of the
border style.
The RGB values were used to draw the border color and a etched look when the
control was disabled. I could have used hex values instead of RGB function,
but I dont always think about those things. The sunken text is based on a
TLabel and my prefered "disabled" look; however, I'm using DrawState
function to do that now.

http://www.elists.org/mailman/listinfo/delphi-talk

__________________________________________________
Delphi-Talk mailing list -> [email protected]
http://www.elists.org/mailman/listinfo/delphi-talk

Reply via email to