473,624 Members | 2,030 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How do menu list with one check

How do I create a submenu so that I can only check ONE of the values?

Example:
Menu
--> Color SubMenu
--> Red Value 1
--> Yellow Value 2
--> Green Value 3

Thanks....
Jan 17 '06 #1
7 3996

VB Programmer wrote:
How do I create a submenu so that I can only check ONE of the values?

Example:
Menu
--> Color SubMenu
--> Red Value 1
--> Yellow Value 2
--> Green Value 3

Thanks....


You have to unclick the other items yourself once on is selected.

Chris
Jan 17 '06 #2
"I Don't Like Spam" <no@spam.com> schrieb:
How do I create a submenu so that I can only check ONE of the values?

Example:
Menu
--> Color SubMenu
--> Red Value 1
--> Yellow Value 2
--> Green Value 3

Thanks....


You have to unclick the other items yourself once on is selected.


You can simplify this by storing the selected option in a private variable
of type 'MenuItem', for example, then uncheck the previously checked item if
another item is clicked and store the newly checked item in the variable.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 17 '06 #3
Thanks, as usual!!! :)

"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:O2******** ******@tk2msftn gp13.phx.gbl...
"I Don't Like Spam" <no@spam.com> schrieb:
How do I create a submenu so that I can only check ONE of the values?

Example:
Menu
--> Color SubMenu
--> Red Value 1
--> Yellow Value 2
--> Green Value 3

Thanks....


You have to unclick the other items yourself once on is selected.


You can simplify this by storing the selected option in a private variable
of type 'MenuItem', for example, then uncheck the previously checked item
if another item is clicked and store the newly checked item in the
variable.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 18 '06 #4
Wasn't this feature built into versions of VB previous to VS.NET 05? I seem
to remember the ability to indicate that a particular set of menu options
was mutually exclusive i.e. a dot would appear next to the single item
selected.

I can live with the fact that I now have to code something that used to be
done with setting control properties, but what irks me is that the visual
interface is no longer consistent. Checks are for non-mutually exclusive
options. Dots are for mutually exclusive options. This used to be true
outside and inside a menu. But with the apparent removal of this feature,
the interface standard is no longer uniformly applied.

Using the example below, in VS.NET 05, if I see a check next to Yellow, I
don't automatically know that I'm only allowed to select one option.
Depending on the application, it may not be intuitive that you can't select
any combination of the options.

Yeah, I guess I could always write my own control, but that's not the point.
It seems like MS has abandoned applying one of the most fundamental GUI
principles when it comes to the Menu. Am I the only one bothered by this?

Mitchell S. Honnert
www.UltraID3Lib.com
"Herfried K. Wagner [MVP]" <hi************ ***@gmx.at> wrote in message
news:O2******** ******@tk2msftn gp13.phx.gbl...
"I Don't Like Spam" <no@spam.com> schrieb:
How do I create a submenu so that I can only check ONE of the values?

Example:
Menu
--> Color SubMenu
--> Red Value 1
--> Yellow Value 2
--> Green Value 3

Thanks....


You have to unclick the other items yourself once on is selected.


You can simplify this by storing the selected option in a private variable
of type 'MenuItem', for example, then uncheck the previously checked item
if another item is clicked and store the newly checked item in the
variable.

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>

Jan 18 '06 #5

Mitchell S. Honnert wrote:
Wasn't this feature built into versions of VB previous to VS.NET 05? I seem
to remember the ability to indicate that a particular set of menu options
was mutually exclusive i.e. a dot would appear next to the single item
selected.


For a moment I thought you had just made this up :) But I checked the
the excerpt from 'The Windows User Experience', as found in the MSDN
Library October 2001, and indeed it is specified that you can have
option-group-like menu items. Can't think of anywhere I've ever seen
one. *However* - I don't recall ever being able to create these
directly in VB, and indeed there's no support for this concept in the
VB6 Menu Editor. So I don't know if you ever could in VB.

However (again), I did find in the .NET Framework the
MenuItem.RadioC heck property, which tells a menu item to display a
radio button (not a check mark) in response to the value of the Checked
property. This (combines with the manual exclusivity coding) gives the
behaviour you seek.

--
Larry Lard
Replies to group please

Jan 18 '06 #6

VB Programmer wrote:
How do I create a submenu so that I can only check ONE of the values?

Example:
Menu
--> Color SubMenu
--> Red Value 1
--> Yellow Value 2
--> Green Value 3


Echoing my post elsethread, in addition to the other replies, note that
you can set MenuItem.RadioC hecked to make the menu items display a dot
rather than a tick mark.

--
Larry Lard
Replies to group please

Jan 18 '06 #7
> Can't think of anywhere I've ever seen one.
You can find an example of the "radio menu item" in Outlook Express (which,
not too coincidentally, I'm using right now as my newsreader.)

View
Current View
Show All Message
Hide Read Messages
Show Downloaded Messages
Hide Read or Ignored Message
However (again), I did find in the .NET Framework the MenuItem.RadioC heck
property, which tells a menu item to display a radio button (not a check
mark)
in response to the value of the Checked property. A ha! But I'm not using the superseded MenuItem. I'm using the new
ToolStripMenuIt em.

From the Help entry on MenuItem...

"Represents an individual item that is displayed within a MainMenu or
ContextMenu. Although ToolStripMenuIt em replaces and adds functionality to
the MenuItem control of previous versions, MenuItem is retained for both
backward compatibility and future use if you choose."

So, it still appears that if you want to use the "latest and greatest" menu
controls in VS.NET, you lose the ability to display a check without
overriding the control.

Incidentally, if you look in the Outlook 2003 (and probably other MS Office
03 apps), you see that the View \ Arrange By menu items only use checks even
though they are mutually exclusive. So, if we're supposed to look towards
MS's own products as guidance for GUI design, it truly does appear as if
they've abandoned the principle.

Bummer.

- Mitchell S. Honnert

"Larry Lard" <la*******@hotm ail.com> wrote in message
news:11******** **************@ f14g2000cwb.goo glegroups.com.. .
Mitchell S. Honnert wrote:
Wasn't this feature built into versions of VB previous to VS.NET 05? I
seem
to remember the ability to indicate that a particular set of menu options
was mutually exclusive i.e. a dot would appear next to the single item
selected.


For a moment I thought you had just made this up :) But I checked the
the excerpt from 'The Windows User Experience', as found in the MSDN
Library October 2001, and indeed it is specified that you can have
option-group-like menu items. Can't think of anywhere I've ever seen
one. *However* - I don't recall ever being able to create these
directly in VB, and indeed there's no support for this concept in the
VB6 Menu Editor. So I don't know if you ever could in VB.

However (again), I did find in the .NET Framework the
MenuItem.RadioC heck property, which tells a menu item to display a
radio button (not a check mark) in response to the value of the Checked
property. This (combines with the manual exclusivity coding) gives the
behaviour you seek.

--
Larry Lard
Replies to group please

Jan 18 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3266
by: zapazap | last post by:
Dear Snake Charming Gurus, (Was: http://mail.python.org/pipermail/python-list/2004-January/204454.html) First, a thank you to Tim Golden, Thomas Heller, and Mark Hammond for your earlier help with this problem. I am uncertain about what etiquette calls for, but more on that later. My Objective: I am trying to control the _VMWare Desktop_ application
4
3830
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following beautiful script "http://javascript.internet.com/navigation/toolbar-menu.html". It works like a charm. I made my webpage in frames, where the nav-frame shows the menubar, so whenever I click a link in the menubar, it opens in the frame below. But...
2
5290
by: RWD | last post by:
I am trying to figure out how to change the target frame in my hyperlink on a DHTML menu. The menu is in one frame and the target frame is called "main" The code is below: Thanks in advance RWD <script type='text/javascript'>
4
5762
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
13
2049
by: Matthew Hagston | last post by:
Trying to do some updating and beyond frustrations with making it compatibal with Mac's I am primarily done. Biggest problem I am having now is with Opera not displaying the menu. works fine in IE, NS, and Firefox. Due to the problem of having to have it target an iframe to update had to write my own menu. Do not get any errors, simply will not display at all. code of the menu and the css file is below. location of the html file is:...
0
4531
by: benfly08 | last post by:
Hi, I used SWT to develop an windows application. In the application there is a dynamic created popup menu. The dynamic part is that i will pass a list of name to be a submenu of one menu item. However, when I code selection event, i cannot access to the list i pass in. Anybody got idea? Below is the code. public static void setUpMenu(final Shell shell, Menu popUpMenu, final String clientId) { myShell = shell; ...
23
2778
by: kigoobe | last post by:
Hi friends, I'm having a menu like this - http://www.kigoobe.com/offshoring/bugs/javascript/treeMenuCheckToggle.gif that I've fetched from the database, using recursive function, where data is stored as - id | title | parent I need a javascript function, that will help me to check / uncheck child elements (if present) when I click on a parent at different level.
4
6490
by: TechnoAtif | last post by:
Hi ALL I have entered some array values using checkboxes into mysql database through a form. Next iam creating a searchpage where all those cateogories inserted through checkboxes has to be retrieved using list/menu box. When i check only a single checkbox to insert the checked category ,selecting that category through list box gives out the entire data of the user corresponding to that category. However when i check multiple checkboxes and...
13
2846
by: PetterL | last post by:
I writing a program where I read menu items from a file. But I have problem when I click an menu item i want it to mark that one as checked but I cant access the menu object of that item to see witch object was selected. This is the sub procedure that read the items from an Array and create the menutitem. The array hold more information to use in program when one of the items is selected. Dim finisharray(,) As String ' is set up...
0
8236
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8173
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8621
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8335
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8475
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6110
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4079
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
1785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1482
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.