Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
385
Button tools image shadow when mouse hover
posted

Hi,

I have two problems -

1. ultraToolBar, ButtonTools that show as Shadow or Shade when mouse over.

2.tDelete.SharedProps.AppearancesSmall.PressedAppearance.Image is not change when i press button.

I would like to make button to be flat and just change image (Appearance, PressedAppearance, HotTrackAppearance) stages.

       

Dim tDelete As New ButtonTool("mnuDelete")
tDelete.SharedProps.Caption = "Delete"
tDelete.SharedProps.AppearancesSmall.Appearance.Image = My.Resources.delete
tDelete.SharedProps.AppearancesSmall.PressedAppearance.Image = My.Resources.delete_active
tDelete.SharedProps.AppearancesSmall.HotTrackAppearance.Image = My.Resources.delete_hover

I would like to know which setting(Properties) i need to change.

Thank you

 

Parents
No Data
Reply
  • 44743
    posted

    The shadows are displayed when the UltraToolbarsManager.Style is OfficeXP. If you want to turn off shadows, you will need to use a different Style. As for the different images, I was able to get different images to display based on state the way you were trying to with version 11.1. What version are you using? The only thing I can say is that you will never see the pressed image because when the button is pressed, it is also hot tracked, and the hot tracked image will take precedence if it is set.

Children