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
880
HotTrackAppearance is not applied to an UltraButton with ButtonStyle set to Flat
posted

The hot track appearance works fine when the FlatBorderless Button Style is used, but for some reason you can't have it with a border. Is this intentional behaviour? Is there any workaround other than using the MouseEnter and MouseLeave events to do it manually?

Here's the designer code to show how I've got it configured:

'
'ActionButton
'
Me.ActionButton.Anchor = CType((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Right), System.Windows.Forms.AnchorStyles)
Appearance17.BackColor = System.Drawing.Color.Transparent
Appearance17.BorderColor = System.Drawing.Color.FromArgb(CType(CType(180, Byte), Integer), CType(CType(165, Byte), Integer), CType(CType(85, Byte), Integer))
Me.ActionButton.Appearance = Appearance17
Me.ActionButton.ButtonStyle = Infragistics.Win.UIElementButtonStyle.Flat
Me.ActionButton.Font = New System.Drawing.Font("Microsoft Sans Serif", 8.25!, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, CType(0, Byte))
Appearance18.BackColor = System.Drawing.Color.FromArgb(CType(CType(254, Byte), Integer), CType(CType(248, Byte), Integer), CType(CType(216, Byte), Integer))
Appearance18.BackColor2 = System.Drawing.Color.FromArgb(CType(CType(253, Byte), Integer), CType(CType(239, Byte), Integer), CType(CType(169, Byte), Integer))
Appearance18.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical
Appearance18.BorderColor = System.Drawing.Color.FromArgb(CType(CType(180, Byte), Integer), CType(CType(165, Byte), Integer), CType(CType(85, Byte), Integer))
Me.ActionButton.HotTrackAppearance = Appearance18
Me.ActionButton.Location = New System.Drawing.Point(432, 3)
Me.ActionButton.Name = "ActionButton"
Appearance19.BackColor = System.Drawing.Color.FromArgb(CType(CType(255, Byte), Integer), CType(CType(236, Byte), Integer), CType(CType(131, Byte), Integer))
Appearance19.BackColor2 = System.Drawing.Color.FromArgb(CType(CType(218, Byte), Integer), CType(CType(202, Byte), Integer), CType(CType(112, Byte), Integer))
Appearance19.BackGradientStyle = Infragistics.Win.GradientStyle.Vertical
Appearance19.BorderColor = System.Drawing.Color.FromArgb(CType(CType(180, Byte), Integer), CType(CType(165, Byte), Integer), CType(CType(85, Byte), Integer))
Me.ActionButton.PressedAppearance = Appearance19
Me.ActionButton.ShowFocusRect = False
Me.ActionButton.ShowOutline = False
Me.ActionButton.Size = New System.Drawing.Size(91, 22)
Me.ActionButton.TabIndex = 13
Me.ActionButton.Text = "Undo"
Me.ActionButton.UseOsThemes = Infragistics.Win.DefaultableBoolean.[False]

Parents
No Data
Reply Children