Change color of TsGauge

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #35229
    arnfast
    Participant

    in design time can i change the color of tsgauge with the property forecolor. this works fine.

    if i change the property forecolor in runtime, then the color of tsgauge do not change.

    have you any idea for me?

    thank you for your help.

    best greets

    #48465
    Hamilton
    Participant

    Hey,

    I did some testing on that control and found that the color is being set by the skin. For most AC controls you can set the SkinData.CustomColor property and that allows you to override the color but that isn't working for this control (this may be a bug or intended design idk).

    What you can do to get it working now is change the SkinData.SkinSection to something other than GAUGE – I found that pressing DELETE so there is no skin section at all worked fine (it will show as UNKNOWN), but you may want to make it a PANEL or something else if you want to effect the way the border and other details of the control are drawn.

    I hope that helps, best of luck.

    Regards,

    Hamilton

    #48467
    arnfast
    Participant

    Hey Hamilton

    Thanks for you help.

    It works fine when I select UNKNOWN, but when I select another one as PANEL the color is not showed.

    and when I use UNKNOWN the component is not skined.

    Regards,

    Morten

    #48472
    Support
    Keymaster

    Hello! I will try to improve it soon (a behavior of the CustomColor property).

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.