Inconsistent Skinning of ListBoxes…

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #69157
    Andy Bell
    Participant

    Hi

    The Alpha Controls ListBoxes seem to skin very inconsistently, as the screenshots show… Is this by design? I’ve tried using the GlobalColor and GlobalFontColor in my form’s FormShow event to set the colors to make them consistent but the List doesn’t react…

    It’s the white backgrounds that bother me – it seems the wrong choice for the selected skins.

    I’m worried if I give my users the ability to skin the app they’ll report this as a bug. My current workaround is to use an LMD EI List and skin it manually, so I’m not badly affected by this, but I’d rather the skins were consistent…

    Andy

    • This topic was modified 4 years, 3 months ago by Andy Bell.
    • This topic was modified 4 years, 3 months ago by Andy Bell.
    Attachments:
    You must be logged in to view attached files.
    #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 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.