3 Answers, 1 is accepted
0
Hi Peter,
Nikolay
the Telerik team
Before addressing your enquiry, could you please let us know what is the difference between Normal and Depressed state in the context of RadButton? Or probably you have in mind another button - maybe RadToggleButton? Please share these details with us so that we can respond adequately.
Greetings,Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
0
Peter
Top achievements
Rank 1
answered on 29 Sep 2012, 09:19 AM
Oh, I just want a normal button with my custom normal and depressed image so that when the user press on it, there is some kind of visual feedback.
0
Hello Peter,
Thank you for writing back.
Nikolay
the Telerik team
Thank you for writing back.
You can achieve your requirement by handling the MouseDown, MouseUp, KeyDown and KeyUp events to handle the cases in which the button is pressed. You can extend the RadButton class and handle the events in the extended implementation in case you plan to have more than one instance of this type. I am attaching a sample project which demonstrates the approach.
I hope this helps.
Greetings,I hope this helps.
Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>