Selection color in TsListview

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

      Hello!

      You should override the 'SELECTION' skin section in run-time using similar code:

      Code:
      if sSkinManager1.ConstData.Sections[ssSelection] >= 0 then begin
      sSkinManager1.gd[sSkinManager1.ConstData.Sections[ssSelection]].Props[0].Color := YourColor;
      sSkinManager1.gd[sSkinManager1.ConstData.Sections[ssSelection]].Props[0].GradientPercent := 0;
      sSkinManager1.gd[sSkinManager1.ConstData.Sections[ssSelection]].Props[1].Color := YourColor;
      sSkinManager1.gd[sSkinManager1.ConstData.Sections[ssSelection]].Props[1].GradientPercent := 0;
      end;

      Also, you can change palette of the skin additionaly for cases when 'SELECTION' not used:

      Code:
      sSkinManager1.Palette[pcSelectionBG] := YourColor;
      sSkinManager1.Palette[pcSelectionBG_Focused] := YourColor;

      Write me if this information is not enough.

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