RadioCheck Menu options

  • Thread starter Thread starter Paul Cheetham
  • Start date Start date
P

Paul Cheetham

Hi,

I have an application (written in c#) where I am using a context menu
for some custom objects on the screen.
The context menu has a sub-menu which consists of 4 options, on which I
have set the RadioCheck option to true, as I want these items to
function as a group of radio buttons.

Since I couldn't find any option to set which group each of the items
was in I assumed it would work as it is.
However, when I test it, selected an item on the menu does not de-select
the one that is currently selected.

Surely I don't have to do that myself do I?

Have I missed something? Do I mis-understand something, or is there
some basic functionality missing?


Thankyou.


Paul
 
You haven't missed anything, you must implement it yourself.
I have written a MenuExtender component which allows you to put MenuItems
into a RadioGroup and will handle the selection for you. The code for this
class can be seen on my site:
http://www.dotnetrix.co.uk/menus.html --> Create an Extender Component to
add a Tag property to MenuItems.
 
Thanks for that.

I was thinking of doing the same if that was the case, buit now I'll
base it on yours if you don't mind.


Thanks again.

Paul
 
Back
Top