• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 301
  • Last Modified:

Detect popup's submenu popup

How can I detect when a submenu of a popup menu has been opened/expanded?
0
menorcanet
Asked:
menorcanet
  • 2
  • 2
1 Solution
 
Geert GruwezOracle 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 GruwezOracle 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

Featured Post

Industry Leaders: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now