mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-11-05 13:39:39 +01:00
lcl: ToolBar should not get focus (in other case every toolbutton click will focus it)
git-svn-id: trunk@15092 -
This commit is contained in:
parent
2c757eff9a
commit
51a4213c3f
@ -1548,6 +1548,7 @@ type
|
||||
procedure EndUpdate; virtual;
|
||||
procedure Paint; override;
|
||||
procedure SetButtonSize(NewButtonWidth, NewButtonHeight: integer);
|
||||
function CanFocus: Boolean; override;
|
||||
public
|
||||
property ButtonCount: Integer read GetButtonCount;
|
||||
property Buttons[Index: Integer]: TToolButton read GetButton;
|
||||
|
||||
@ -413,6 +413,11 @@ begin
|
||||
end;
|
||||
end;
|
||||
|
||||
function TToolBar.CanFocus: Boolean;
|
||||
begin
|
||||
Result := False;
|
||||
end;
|
||||
|
||||
function TToolBar.CanAutoSize(var NewWidth, NewHeight: Integer): Boolean;
|
||||
begin
|
||||
Result := WrapButtons(NewWidth, NewHeight);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user