'bswift' wrote:
Hello….I have a TsCheckListbox that displays a 1500 item list. I have it set to 5 columns and shows fine most of the time. However, on occasion it shows as a single column with the horizontal scrollbar. For the life of me I cannot figure out what the heck is going on. I cannot reproduce on a consistent basis. Anyone else have a similar situation?
OK….this is the code I use to initialize the skins.
Code:
ConfigFile:=TIniFile.Create(GetSpecialFolder(rtAppData)+'Song Sheet 5 UkuleleSettings.ini');
aPath:=GetSpecialFolder(rtAppData)+'Song Sheet 5 UkuleleSkins';
sSkinManager1.SkinDirectory:=aPath;
sSkinManager1.Active:=true;
aSkin:=ReadStr2('Skins','Name');
with sSkinManager1 do begin
if (aSkin='') or (aSkin='0') then begin
aSkin:='Windows 10';
SkinName:=aSkin;
frmMain.SaveStr('Skins','Name',aSkin);
end
else
SkinName:= aSkin;
end;
If the user changes the skin the sCheckListbox and a sListbox display properly. But if they close and reopen the program they display as a single column.
?????