Up and Down images for button?

4 posts, 0 answers
  1. Peter
    Peter avatar
    2 posts
    Member since:
    Nov 2010

    Posted 29 Sep 2012 Link to this post

    Hi

    Can I have Normal and Depressed images for the button?
  2. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 29 Sep 2012 Link to this post

    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 >>
  3. UI for WinForms is Visual Studio 2017 Ready
  4. Peter
    Peter avatar
    2 posts
    Member since:
    Nov 2010

    Posted 29 Sep 2012 Link to this post

    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.
  5. Nikolay
    Admin
    Nikolay avatar
    1804 posts

    Posted 29 Sep 2012 Link to this post

    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 >>
Back to Top