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.deletetDelete.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
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.
Hi Mike,
Yes, I am using NetAdvantage_Ultimate V11.1 and UltraToolbarsManager.Style is OfficeXP.
As for our design, I need toolbar Style is like OfficeXP but need button is flat and change button image when mouse over, click and press.
For the PressedAppearance case,
I use different image in (Appearance,PressedAppearance,HotTrackAppearance)
(Normal) (Mouse Over)
(Mouse Press) Image should be show
But is appear as Mouse Over Image.
If I comment on tNew.SharedProps.AppearancesSmall.HotTrackAppearance.Image line. Mouse Press images is display.
Thank .
Is there any way to get rid of the shadow below he button programmatically.I have set the style to Default.
No, because the only way to have a button pressed is to also have the mouse over it and in that case, the hot track appearance takes precedence. The reason for this is that the pressed appearance is also used to show the "checked" appearance of the state button tool. So it always looks pressed when it is in the checked state. If it were checked, there would be no way to show a hot tracked appearance if the pressed appearance took precendence. You can submit a feature request for an option or property that would change the resolution order. That would help you accomplish this.
Still have problem,
If I used below coding
Dim tDelete As New ButtonTool("mnuDelete")tDelete.SharedProps.AppearancesSmall.Appearance.Image = My.Resources.deletetDelete.SharedProps.AppearancesSmall.PressedAppearance.Image = My.Resources.delete_active tDelete.SharedProps.AppearancesSmall.HotTrackAppearance.Image = My.Resources.delete_hover
.PressedAppearance.Image is not working.
If I comment on .HotTrackAppearance.Image, .PressedAppearance.Image it become work.
Is there any way to work 3 together.
Thank
So is this issue resolved for you or are you still having a problem?