how to know which menu item was clicked.

Post any questions you have about using the Verj.io Studio, including client and server-side programming with Javascript or FPL, and integration with databases, web services etc.

Moderators: Jon, Steve, Ian, Dave

xren
Ebase User
Posts: 272
Joined: Fri Dec 14, 2012 2:55 pm
Location: Ottawa

how to know which menu item was clicked.

#1

Postby xren » Mon Nov 24, 2014 6:21 pm

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
0 x

Jon
Moderator
Moderator
Posts: 1342
Joined: Wed Sep 12, 2007 12:49 pm

#2

Postby Jon » Tue Nov 25, 2014 7:33 am

The current menu item selected (its item name) is available using the Menu Control's selected property e.g.

Code: Select all

var sel = controls.MYMENU1.selected;
if (sel == xxx) 
...
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.
0 x


Who is online

Users browsing this forum: No registered users and 14 guests