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

ImageHovered Not working

1 Answer 32 Views
RibbonBar
This is a migrated thread and some comments may be shown as answers.
Ananthan
Top achievements
Rank 1
Ananthan asked on 28 Mar 2013, 05:15 AM
I had created a sample project using radwinforms
Then put rad ribbon bar in the main form.then created a tab and group in the ribbon bar.
Then i put an imagebuttonelement1 and set properties Image,ImageHoverd.
Then compiled and execute4d the application .Image is showing fine on the button but when mouse arrow hovered over the button, image not changing .What will i do to change image of button when mouse hovered ?

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 01 Apr 2013, 12:58 PM
Hi Ananthan,

Thank you for writing.

We are aware of this issue and it has already been added as a bug report to our Public Issue Tracking System. Feel free to follow this link, where you can add your vote/comment for it. 

As a workaround you should explicitly set the 
HoveredImage, ClickedImage and Image properties:
this.radImageButtonElement1.MouseLeave += new EventHandler(radImageButtonElement1_MouseLeave);
this.radImageButtonElement1.MouseDown += new MouseEventHandler(radImageButtonElement1_MouseDown);
this.radImageButtonElement1.MouseHover += new EventHandler(radImageButtonElement1_MouseHover);
 
 
void radImageButtonElement1_MouseHover(object sender, EventArgs e)
{
    this.radImageButtonElement1.Image = MyHoverImage;
}
 
void radImageButtonElement1_MouseDown(object sender, MouseEventArgs e)
{
    this.radImageButtonElement1.Image = MyMouseDownImage;
}
 
void radImageButtonElement1_MouseLeave(object sender, EventArgs e)
{
    this.radImageButtonElement1.Image = MyNormalImage;
}

I am sorry for the inconvenience. Should you have any other questions or suggestions, do not hesitate to contact us.

Kind regards, Peter
the Telerik team
WinForms Q1 2013 boasts PivotGrid, PDF Viewer, Chart enhancements and more. Check out all of the latest highlights.
Tags
RibbonBar
Asked by
Ananthan
Top achievements
Rank 1
Answers by
Peter
Telerik team
Share this question
or