|
@@ -16,7 +16,6 @@ type
|
|
|
private
|
|
private
|
|
|
FBackgroundColor: TColor;
|
|
FBackgroundColor: TColor;
|
|
|
FSliceScalingButton: TBGRAMultiSliceScaling;
|
|
FSliceScalingButton: TBGRAMultiSliceScaling;
|
|
|
- FImageButtonResource: string;
|
|
|
|
|
procedure SetFBackgroundColor(AValue: TColor);
|
|
procedure SetFBackgroundColor(AValue: TColor);
|
|
|
protected
|
|
protected
|
|
|
|
|
|
|
@@ -25,7 +24,7 @@ type
|
|
|
destructor Destroy; override;
|
|
destructor Destroy; override;
|
|
|
procedure LoadResources(AFileName: string);
|
|
procedure LoadResources(AFileName: string);
|
|
|
procedure DrawButton(Caption: string; State: TBGRAThemeButtonState;
|
|
procedure DrawButton(Caption: string; State: TBGRAThemeButtonState;
|
|
|
- Focused: boolean; ARect: TRect; DestCanvas: TCanvas); override;
|
|
|
|
|
|
|
+ {%H-}Focused: boolean; ARect: TRect; DestCanvas: TCanvas); override;
|
|
|
published
|
|
published
|
|
|
property BackgroundColor: TColor read FBackgroundColor
|
|
property BackgroundColor: TColor read FBackgroundColor
|
|
|
write SetFBackgroundColor default clForm;
|
|
write SetFBackgroundColor default clForm;
|
|
@@ -75,10 +74,11 @@ var
|
|
|
bmp: TBGRABitmap;
|
|
bmp: TBGRABitmap;
|
|
|
begin
|
|
begin
|
|
|
case State of
|
|
case State of
|
|
|
- btbsNormal: ImageIndex := 0;
|
|
|
|
|
btbsHover: ImageIndex := 1;
|
|
btbsHover: ImageIndex := 1;
|
|
|
btbsActive: ImageIndex := 2;
|
|
btbsActive: ImageIndex := 2;
|
|
|
btbsDisabled: ImageIndex := 3;
|
|
btbsDisabled: ImageIndex := 3;
|
|
|
|
|
+ else {btbsNormal}
|
|
|
|
|
+ ImageIndex := 0;
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
bmp := TBGRABitmap.Create(ARect.Width, ARect.Height, BackgroundColor);
|
|
bmp := TBGRABitmap.Create(ARect.Width, ARect.Height, BackgroundColor);
|