How can I handle MouseUp events in RadioButtons?

R

Roberto Rocco

Hello,

I need to handle MouseUp events in RadioButtons. How can I do that?
It seems that the MouseUp event is one of the inherited but not implemented
events.

I tried to create my own RadioButton class derived from RadioButton and I
did override the OnMouseUp event here.
But this event is never fired!

If I derive my own RadioButton class from Control (instead of deriving it
from RadioButton) then the MouseUp event gets fired instead.

But deriving my own RadioButton class from Control means that I need to code
each RadioButton behaviour on my own!
But I just want to have a "normal" RadioButton simply extended by supporting
MouseUp events.

Is there any solution to this?

Am I doing something completely wrong?

Many thanks for every hint.

Best regards,

Roberto Rocco.
 
D

Daniel Moth

Am I doing something completely wrong?
No you've pretty much got it covered.

Controls that don't implement certain inherited events (e.g.
RadioButton.MouseUp) cannot have this functionality added (even if you
inherit from them).

Rolling your own control is the solution. So at this point you should
question whether your requirement is worth the implementation overhead or
whether you can achieve the real end user goal via some other means.

Cheers
Daniel
 
R

Roberto Rocco

Hello all,

thank you for your information and tips.
I fear, I'll really have to deal with creating a new control on my own...
Anyway, it's good to know now that this is the way to go. :)

Best regards,

Roberto Rocco.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top