I managed to get the following work for my project. I could not find a way to directly reference the button created in the ActionBar. However, the ActionComponent is set to a button that is created at runtime.
This, of course, had to be the action itself in order to connect to the main button on the action bar, where the children were attached.
procedure TReportPlugin.actMyDropdownExecute(Sender: TObject); var ActionButton: TCustomDropDownButton; begin inherited; if (Sender is TAction) then begin if (Sender as TAction).ActionComponent is TCustomDropDownButton then begin ActionButton := (Sender as TAction).ActionComponent as TCustomDropDownButton; ActionButton.DropDownClick; end; end; end;
source share