Inconsistent Skinning of ListBoxes…

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #69176
    Support
    Keymaster

    Hello, Andy
    I’m watching screenshots, but can’t understand a problem..
    White color is defined in the skin by the ASkinEditor tool.
    Color of elements in the custom skin may be changed to any other.

    #69194
    Andy Bell
    Participant

    Hi

    I’m still learning to use these things, please forgive my asking ‘obvious’ questions:

    ‘White color is defined in the skin by the ASkinEditor tool.’

    Where? I can’t find in the Skin editor a section for List Box backgrounds.

    ‘Color of elements in the custom skin may be changed to any other.’
    How? In the skin editor or at runtime?

    Andy

    #69296
    Support
    Keymaster

    Sorry for a long answer here.
    The ‘EDIT’ skin section used for drawing of all edit fields, memos, listboxes, etc.. Try to change this section, plz.

    Color in a skin section may be changed in the skin and in the run-time too. Write me which way do you need.
    Colors may be changed in whole section or in any custom controls.

    Some articles which may be useful:
    https://www.alphaskins.com/randtip.php?num=21
    https://www.alphaskins.com/randtip.php?num=8
    https://www.alphaskins.com/randtip.php?num=5

    #69304
    Andy Bell
    Participant

    Hi

    I will need to edit at runtime

    Andy

    #69336
    Support
    Keymaster

    Hello
    Here is a code for changing of color in the ‘EDIT’ section at run-time:

    var
      gd: TsGeneralData;
      SectionIndex: integer;
    begin
      SectionIndex := sSkinManager1.SkinCommonInfo.Sections[ssEdit]; // Receive index from array of indexes
      sSkinManager1.CommonSkinData.gd[SectionIndex].Props[0 {normal state}].Color := clYellow;
      sSkinManager1.RepaintForms; // Call it if controls should be refreshed immediately
    end;
    

    uses sStyleSimply, sMaskData;

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