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

Menu Items

Hello

I have runt-time designed MainMenu.
And there are a few items with the same OnClick event handler.

How can I get the Name or the MenuIndex of the selected menu item when the user clicks one of these menu items?

Thaks.
     
0
pmarkov
Asked:
pmarkov
1 Solution
 
kretzschmarCommented:
if (sender is TMenuItem) then
  If TMenuItem(Sender).Name = 'xyz' then  //or another property
....

meikl ;-)
0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

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