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;
|
SetMetricsInvalid;
|
||||||
Repaint;
|
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
|
if Assigned(FMenuButtonDropdownMenu) and (FShowMenuButton) then
|
||||||
begin
|
begin
|
||||||
aPopupPoint := ClientToScreen(GetMenuButtonDropdownPoint);
|
aPopupPoint := ClientToScreen(GetMenuButtonDropdownPoint);
|
||||||
TPopupMenu(FMenuButtonDropdownMenu).PopUp(aPopupPoint.X, aPopupPoint.Y);
|
TPopupMenu(FMenuButtonDropdownMenu).PopUp(aPopupPoint.X, aPopupPoint.Y);
|
||||||
DoMenuButtonClick;
|
end else
|
||||||
end;
|
DoMenuButtonClick;
|
||||||
end;
|
end;
|
||||||
|
|
||||||
// Support for Menu Button click
|
// Support for Menu Button click
|
||||||
|
Reference in New Issue
Block a user