Unit CoolButton

Classes

TCoolButton -

Functions

DrawButtonFace - DrawButtonFace - returns the remaining usable area inside the Client rect.
Register -

Types

TButtonLayout
TButtonState
TButtonStyle
TNumGlyphs

Constants

Variables


Functions


function DrawButtonFace(Canvas: TCanvas; const Client: TRect; BevelWidth: Integer; Style: TButtonStyle; IsRounded, IsDown, IsFocused: Boolean): TRect;

DrawButtonFace - returns the remaining usable area inside the Client rect.

procedure Register;


Types


TButtonLayout = (blGlyphLeft, blGlyphRight, blGlyphTop, blGlyphBottom);

TButtonState = (bsUp, bsDisabled, bsDown, bsExclusive);

TButtonStyle = (bsAutoDetect, bsWin31, bsNew);

TNumGlyphs = 1..4

Constants


Variables