You've already forked lazarus-ccr
SpkToolbar: Fire OnMenuButtonClick only when a MenuButtonDropDown popup menu is assigned to the SpkToolbar. Issue #38481.
git-svn-id: https://svn.code.sf.net/p/lazarus-ccr/svn@7969 8e941d3f-bd1b-0410-a28a-d453659cc2b4
This commit is contained in:
@ -2579,13 +2579,13 @@ begin
|
||||
SetMetricsInvalid;
|
||||
Repaint;
|
||||
|
||||
// Dropdown the Menu button dropdown menu and fire the event for click
|
||||
// Dropdown the Menu button dropdown menu or fire the event for click
|
||||
if Assigned(FMenuButtonDropdownMenu) and (FShowMenuButton) then
|
||||
begin
|
||||
aPopupPoint := ClientToScreen(GetMenuButtonDropdownPoint);
|
||||
TPopupMenu(FMenuButtonDropdownMenu).PopUp(aPopupPoint.X, aPopupPoint.Y);
|
||||
DoMenuButtonClick;
|
||||
end;
|
||||
end else
|
||||
DoMenuButtonClick;
|
||||
end;
|
||||
|
||||
// Support for Menu Button click
|
||||
|
Reference in New Issue
Block a user