|
@@ -251,6 +251,7 @@ type
|
|
|
{ Protected declarations }
|
|
{ Protected declarations }
|
|
|
procedure DrawControl; override;
|
|
procedure DrawControl; override;
|
|
|
procedure RenderControl; override;
|
|
procedure RenderControl; override;
|
|
|
|
|
+ procedure TextChanged; override;
|
|
|
procedure CMChanged(var Message: TLMessage); message CM_CHANGED; virtual;
|
|
procedure CMChanged(var Message: TLMessage); message CM_CHANGED; virtual;
|
|
|
{$IFDEF DEBUG}
|
|
{$IFDEF DEBUG}
|
|
|
function GetDebugText: string;
|
|
function GetDebugText: string;
|
|
@@ -1072,6 +1073,16 @@ begin
|
|
|
{$ENDIF}
|
|
{$ENDIF}
|
|
|
end;
|
|
end;
|
|
|
|
|
|
|
|
|
|
+procedure TBCCustomImageButton.TextChanged;
|
|
|
|
|
+begin
|
|
|
|
|
+ InvalidatePreferredSize;
|
|
|
|
|
+ if Assigned(Parent) and Parent.AutoSize then
|
|
|
|
|
+ Parent.AdjustSize;
|
|
|
|
|
+ AdjustSize;
|
|
|
|
|
+ RenderControl;
|
|
|
|
|
+ Invalidate;
|
|
|
|
|
+end;
|
|
|
|
|
+
|
|
|
procedure TBCCustomImageButton.CMChanged(var Message: TLMessage);
|
|
procedure TBCCustomImageButton.CMChanged(var Message: TLMessage);
|
|
|
begin
|
|
begin
|
|
|
if csReadingState in ControlState then
|
|
if csReadingState in ControlState then
|