6/20/2025 2:28:16 PM
|
|
slxdeveloper.com Community Forums |
|
|
|
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
Forum to discuss writing script in Architect plugins for SalesLogix & general SalesLogix customization topics (for Windows client only). View the code of conduct for posting guidelines.
|
|
|
|
Sub GroupsPanePopupMenuClick(Sender, MenuItem)
Posted: 03 Oct 07 2:20 PM
|
OK so the user has popped up one of my New MainView popup menus.....
MSGBOX MenuItem gives me an error.....
What do I do with the subroutine and MenuItem?
SELECT CASE MenuITem CASE 0
CASE 1
CASE 2
END SELECT
RJ Samp |
|
|
|
Re: Sub GroupsPanePopupMenuClick(Sender, MenuItem)
Posted: 03 Oct 07 3:10 PM
|
Hi RJ,
The MenuItem is an object, so that is why you can't display it in a MsgBox. Anyway, The MenuItem has properties such as:
Caption Checked Default Enabled ImageIndex MenuIndex Tag Visible
So, you can use any of those from that reference. What I usually do is assign each menu item a ImageIndex and then use those in my Case statement. That way I can reorder items, rename items, etc and not have to change the code.
Make sense? |
|
|
|
Re: Sub GroupsPanePopupMenuClick(Sender, MenuItem)
Posted: 03 Oct 07 3:29 PM
|
MenuItem.Caption gives me the correctly chosen text.......and those darn automatically added '&' type ahead/quick keys characters need to be stripped out.....
MenuItem.ImageIndex gives me an error....not a supported Property or Method (I did populate the ImageIndex from their defaults of -1 to 0, 1, 2)
Maybe MenuIndex is the key?
Thanks! |
|
|
|
You can
subscribe to receive a daily forum digest in your
user profile. View the site code
of conduct for posting guidelines.
Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
|
|
|
|
|
|
|
|