Disabled Control Color ?

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #39575
    Support
    Keymaster

      Hello
      Sorry for delay, I'm not always here
      So, disabled edit haven't constant color, because control is alphablended.
      For some skins this color will not be changed and may be calculated, but in many skins this color depended from a color of parent :
      [attachment=3334:disedit.png]
      So, solution depends from a your task.
      Try this code for receiving average color between active edit and main skin color :

      CODE
      uses sGraphUtils, sDefaults;
      Color := MixColors(SkinManager.GetActiveEditColor, SkinManager.GetGlobalColor, DefDisabledBlend);


      Maybe it helps.

    Viewing 1 post (of 1 total)
    • You must be logged in to reply to this topic.