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

Re: RadioCheck Menu options by Mick

Mick
Fri Nov 11 19:22:08 CST 2005

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.

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


"Paul Cheetham" <PAC.News@dsl.pipex.com> wrote in message
news:us2mn3u5FHA.2036@TK2MSFTNGP14.phx.gbl...
> 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



Re: RadioCheck Menu options by Paul

Paul
Sat Nov 12 04:25:50 CST 2005


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


Mick Doherty wrote:
> 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.
>

Re: RadioCheck Menu options by Mick

Mick
Sat Nov 12 05:35:34 CST 2005

You're welcome.

I don't mind at all :-)

--
Mick Doherty
http://dotnetrix.co.uk/nothing.html


"Paul Cheetham" <PAC.News@dsl.pipex.com> wrote in message
news:OAwQ9O35FHA.2600@tk2msftngp13.phx.gbl...
>
> 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