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:
paul 2008-05-11 12:38:53 +00:00
parent 2c757eff9a
commit 51a4213c3f
2 changed files with 6 additions and 0 deletions

View File

@ -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;

View File

@ -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);