Hi,
I have three menu item which goes to same form.
in the form's script, how can I know which menu item is clicked? (I need to make is showed as selected(highlighted) on the form as well.
Thanks,
Xiaoli
how to know which menu item was clicked.
Moderators: Jon, Steve, Ian, Dave
-
- Ebase User
- Posts: 272
- Joined: Fri Dec 14, 2012 2:55 pm
- Location: Ottawa
-
- Moderator
- Posts: 1342
- Joined: Wed Sep 12, 2007 12:49 pm
The current menu item selected (its item name) is available using the Menu Control's selected property e.g.
The best way to style a menu is to use the styling assistant - select the Menu Control then Ctrl T to show the styling assistant. Here you can style the selected item.
Code: Select all
var sel = controls.MYMENU1.selected;
if (sel == xxx)
...
0 x
Who is online
Users browsing this forum: No registered users and 14 guests