This is a migrated thread and some comments may be shown as answers.

Up and Down images for button?

3 Answers 72 Views
Buttons, RadioButton, CheckBox, etc
This is a migrated thread and some comments may be shown as answers.
Peter
Top achievements
Rank 1
Peter asked on 29 Sep 2012, 09:05 AM
Hi

Can I have Normal and Depressed images for the button?

3 Answers, 1 is accepted

Sort by
0
Nikolay
Telerik team
answered on 29 Sep 2012, 09:17 AM
Hi Peter,

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
Nikolay
Telerik team
answered on 29 Sep 2012, 10:42 AM
Hello Peter,

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,
Nikolay
the Telerik team
RadControls for WinForms Q2'12 release is now live! Check out what's new or download a free trial >>
Tags
Buttons, RadioButton, CheckBox, etc
Asked by
Peter
Top achievements
Rank 1
Answers by
Nikolay
Telerik team
Peter
Top achievements
Rank 1
Share this question
or