Detect popup's submenu popup

How can I detect when a submenu of a popup menu has been opened/expanded?
menorcanetAsked:
Who is Participating?
 
Geert GOracle dbaCommented:
assign an event to the OnClick of the parent menu item

it gets fired when opening expanding the menu

procedure TfrmMain.mnuParentMenuOpenedClick(Sender: TObject);
begin
  Caption := 'Opened';
end;
0
 
menorcanetAuthor Commented:
What if the menu has been opened without clicking? (just hovering over)
0
 
Geert GOracle dbaCommented:
gets fired too, i tested it

if you implement my code,
the caption of the form will change to 'opened' just with hovering
0
 
menorcanetAuthor Commented:
Thanks
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.