简体   繁体   中英

Delphi - ActionToolBar how to get Submenu property on Action execute event

In Delphi on ActionToolBar how to get "Tag" property of Submenu Item on Action->onExecute event.

在此处输入图片说明

So not Action Tag , I need TActionClientItem ("Open") tag property on submenu trigger that action OR Main Button (Action2) Tag or even Main Button ("Action2") index (position) on ActionToolBar … all on Submenu Action-> onExecute event

AFAIK, that is not possible.

Usually the triggering component can be retrieved via the action's ActionComponent property, but doesn't work in this case because TActionClientItem is not derived from TComponent .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM