Is there any way to programmatically set a buttontool to have the hottrackappearance (as if the cursor was over it) ?
Hello,
Yes, you could do this with following code line:
ultraToolbarsManager1.Tools["ButtonToolKey"].SharedProps.AppearancesSmall.HotTrackAppearance.BackColor = Color.Red;
Let me know if you have any further questions.
Hi,
I'm trying to do the same thing. In your example it just sets the backcolor but that doesn't look the same as the themed hot track appearance.
What I want to do is something like:
ultraToolbarsManager1.Tools["ButtonToolKey"].SharedProps.AppearancesSmall.Appearance = Me.UltraToolbarsManager1.ToolbarSettings.HotTrackAppearance
However, despite e.UltraToolbarsManager1.ToolbarSettings.HasHotTrackAppearance being true the HottrackAppearance seems to be non-existent (i.e. the backcolor arbg is 0).
Do you know where I can find the HotTrackAppearance object that's actually being used by the toolbar, and can I use it to set the normal appearance of the tool item?
Thanks,
John.