ChangeSysColors Canvas TImage

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #37341
    Gregory.P
    Participant

    ChangeSysColors Canvas TImage

    if ChangeSysColors = False

    Color line : clBtnFace, Color Line OK

    [attachment=8157:Capture2.PNG]

    if ChangeSysColors = True

    Color line <> clBtnFace

    [attachment=8156:Capture1.PNG]

    [attachment=8158:Project1.zip]

    thank you

    #56198
    Support
    Keymaster

    Hello!

    System colors are depended from skin colors if this property is True. BtnFace color is changed also and equal to the main skin color usually.

    I can add a special “pcGrid” color to the SkinManager.palette for using in such cases.

    Or you can use this code now for calculating a color:

    Code:
    uses sGraphUtils;

    Canvas.Pen.color := BlendColors(sSkinManager.Palette[pcEditText], sSkinManager1.Palette[pcEditBG], 38);

    But, if you have a constant white background there, then you can just make this color unchangeable, like $D0D0D0, I think.

    #56203
    Gregory.P
    Participant
    'Support' wrote:

    Hello!

    System colors are depended from skin colors if this property is True. BtnFace color is changed also and equal to the main skin color usually.

    I can add a special “pcGrid” color to the SkinManager.palette for using in such cases.

    Or you can use this code now for calculating a color:

    Code:
    uses sGraphUtils;

    Canvas.Pen.color := BlendColors(sSkinManager.Palette[pcEditText], sSkinManager1.Palette[pcEditBG], 38);

    But, if you have a constant white background there, then you can just make this color unchangeable, like $D0D0D0, I think.

    thank you

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