By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,360 Members | 3,011 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,360 IT Pros & Developers. It's quick & easy.

ShortCutMenu OnAction Show/NoShow Button

P: n/a
I have a ShortCutMenu that is made available on the RightClick of the
mouse. The OnAction property has my custom function:
=ComboBoxEditor()

I believe that, in the ONAction property, I could do something like
this to allow or prohib the use of the function???
=iif(blnUseThis,ComboBoxEditor(),Msgbox "NotAvailable")

Is there a way to enable or disable the actual menu option from even
showing on the rightclick of the mouse. For example

If blnUseThis then Show my MenuButton on RightClick
Else Show No MenuButton on Right Click???

Thanks Greg

Feb 16 '07 #1
Share this Question
Share on Google+
1 Reply


P: n/a
On Feb 15, 8:45 pm, "ApexD...@gmail.com" <ApexD...@gmail.comwrote:
I have a ShortCutMenu that is made available on the RightClick of the
mouse. The OnAction property has my custom function:
=ComboBoxEditor()

I believe that, in the ONAction property, I could do something like
this to allow or prohib the use of the function???
=iif(blnUseThis,ComboBoxEditor(),Msgbox "NotAvailable")

Is there a way to enable or disable the actual menu option from even
showing on the rightclick of the mouse. For example

If blnUseThis then Show my MenuButton on RightClick
Else Show No MenuButton on Right Click???

Thanks Greg

Read carefully through the help files about manipulating menus.
ShortCut menus work the same as the standard menus and toolbars but
are stored a little differently. You can use the MosueDown event (or
another that occurs before the menu pops-up) to determine if the right
button is used and then make your shortcut menu changes.

Feb 16 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.