softtouch 9 Posted August 29, 2023 I have some buttonedit controls, each has left and right buttons. The left buttons have all the same popup menu assigned as dropdownmenu. When I now select a menuitem, how can I know which buttonedit control showed the popupmenu? Share this post Link to post
aehimself 396 Posted August 29, 2023 Not sure if it will work here but you can try to check the TPopupMenu.PopupComponent property. Share this post Link to post
softtouch 9 Posted August 29, 2023 1 minute ago, aehimself said: Not sure if it will work here but you can try to check the TPopupMenu.PopupComponent property. Unfortunately, it does not work with dropdown menus, it seems to work only with popup menus. Share this post Link to post
aehimself 396 Posted August 29, 2023 Isn’t the dropdown menu a TPopupMenu? Or you mean in this scenario the property is not populated? Share this post Link to post
Stano 143 Posted August 29, 2023 (edited) Neviem, či máš na mysli toto: It is in: procedure TAppearance.mniAlwaysStartOverClick(Sender: TObject); Edited August 29, 2023 by Stano Share this post Link to post
softtouch 9 Posted August 29, 2023 35 minutes ago, aehimself said: Isn’t the dropdown menu a TPopupMenu? Or you mean in this scenario the property is not populated? The menu is a TPopupmenu, but assigned to the dropdownmenu property of the TButtonedit buttons. And with that, it seems not to work and TPopupmenu.popupcomponent return always nil. 1 Share this post Link to post
aehimself 396 Posted August 29, 2023 27 minutes ago, softtouch said: And with that, it seems not to work and TPopupmenu.popupcomponent return always nil. I see. Thank you for confirming. Share this post Link to post
Uwe Raabe 2057 Posted August 29, 2023 This seems to be an oversight in TButtonedEdit (or rather TEditButton.Glyph) to set the DropDownMenu PopupComponent before calling its Popup method. Can you file a QP report similar to RSP-33837, please? Share this post Link to post