473,406 Members | 2,439 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

ShortCutMenu OnAction Show/NoShow Button

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
1 2132
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Johan Christensson | last post by:
Hi. I'm woundering if it's possibel to transfer a OnAction value from a drop-down box in an ASP page without having to use Java code? I mean something like this: <% Sub resposeprocess
2
by: MOHSEN KASHANI | last post by:
Hi, I am trying to hide some form elements in a form by default and show/hide depending on which radio button is clicked. This is what I have but it is not working: <head> <style> ..noshow {...
1
by: G.Gerard | last post by:
Hello Does anyone know how to write a function name with arguments in the OnAction of a command bar button: Example: Public Sub MyFunction(strMsg as String) Msgbox strMsg
3
by: Paul | last post by:
This is MS Access 2002. I am creating some custom buttons on a CommandBar for a form. Below is the code. It works fine except that the OnAction procedure is executed twice. Why? How can I fix...
4
by: MLH | last post by:
I would like to change ShortcutMenu property setting to No for all forms - permanently. I tried this code... Private Sub Command0_Click() Dim frm As Form, ctl As Control For Each frm In Forms...
6
by: Ken | last post by:
Please help I've been working on this for over a day. The following code will run the GetComments function from a shortcut menu. .MoveFirst Set cmb = Application.CommandBars.Add("Comments",...
4
by: Vincent | last post by:
I was wondering if the CommandBarButton OnAction property would allow you to specify a function from a module to be called. According to the post made by Turtle in 1998, the OnAction property can...
1
by: asilverpeach | last post by:
Hey Guys! Found some great scripts here on this topic but have to make to changes to the code that I can't seem to figure out. First, In the following code clicking on the headers shows the...
2
by: grusso | last post by:
well, i need a table with all functions for onaction sentence. where i can obtain? thank yourssss
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.