- This topic has 5 replies, 2 voices, and was last updated 4 years, 3 months ago by Support.
-
AuthorPosts
-
July 31, 2020 at 11:48 am #69157Andy BellParticipant
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.August 4, 2020 at 2:20 pm #69176SupportKeymasterHello, 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.August 6, 2020 at 8:54 am #69194Andy BellParticipantHi
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
August 19, 2020 at 8:14 pm #69296SupportKeymasterSorry 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=5August 20, 2020 at 4:17 pm #69304Andy BellParticipantHi
I will need to edit at runtime
Andy
August 24, 2020 at 8:37 pm #69336SupportKeymasterHello
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;
-
AuthorPosts
- You must be logged in to reply to this topic.