mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-06-02 14:12:41 +02:00
lcl: allow use of DropDownMenu for TToolButton.Style = tbsButton (delphi compatible)
git-svn-id: trunk@20504 -
This commit is contained in:
parent
5a4bf4a31b
commit
e55e302b7e
@ -119,15 +119,11 @@ begin
|
||||
begin
|
||||
DropDownMenuDropped := False;
|
||||
//DebugLn('TToolButton.MouseUp ',Name,':',ClassName,' ',Style=tbsCheck);
|
||||
if (Style = tbsButton) then
|
||||
Down := False;
|
||||
if (Style = tbsDropDown) then
|
||||
if (Style in [tbsButton, tbsDropDown]) then
|
||||
begin
|
||||
if (FToolBar <> nil) and FMouseInControl and
|
||||
(X > ClientWidth - FToolBar.FDropDownWidth) then
|
||||
begin
|
||||
((Style = tbsButton) or (X > ClientWidth - FToolBar.FDropDownWidth)) then
|
||||
DropDownMenuDropped := CheckMenuDropdown;
|
||||
end;
|
||||
Down := False;
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user