You've already forked lazarus-ccr
SpkToolbar: Prepare for RTL
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@8953 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@@ -126,6 +126,7 @@ type
|
||||
{%H-}X, {%H-}Y: Integer); override;
|
||||
|
||||
function GetRootComponent: TComponent;
|
||||
function IsRightToLeft: Boolean;
|
||||
|
||||
property ActionLink: TSpkButtonActionLink read FActionLink;
|
||||
property Checked: Boolean read GetChecked write SetChecked default false;
|
||||
@@ -522,6 +523,11 @@ begin
|
||||
result := tab.Collection.RootComponent;
|
||||
end;
|
||||
|
||||
function TSpkBaseButton.IsRightToLeft: Boolean;
|
||||
begin
|
||||
Result := (GetRootComponent as TControl).IsRightToLeft;
|
||||
end;
|
||||
|
||||
procedure TSpkBaseButton.MouseDown(Button: TMouseButton; Shift: TShiftState;
|
||||
X, Y: Integer);
|
||||
begin
|
||||
|
Reference in New Issue
Block a user