TWebSpeedButton color

Win 10 / VSC 1.56.2 / WEBCore VNC 1.3.4546

Hello,

the assigned button color is only used when setting when setting button property Flat=true.

Is there any way to assign the highlighting color when moving the mouse over the button?

Best regards

You could do this via assigning a CSS class with a hover state setting.

Is that also a workaround for setting the button color when button property Flat = false?

Setting a CSS class is also applicable for a flat button.

In my original posting I described the following: (correct me if this is not a bug)

So - simple question - how to set the color when button property Flat=false?

Best regards

WebSpeedButton.ElementClassName := 'btncolor'

with CSS added:

 <style>
     .btncolor { background-color: yellow;}
 </style>

Well, thank you for showing this workaround. I don't want to insist any further on this minor detail bug in this control.

Setting the button color by property editor with property Flat:=false seems not working as it should.

Setting the color of a WebButton or a WebBitBtn is working as expected.

ButtonColor

Regards

We'll look to make TWebSpeedButton consistent with TWebButton