Changeset 74 for trunk


Ignore:
Timestamp:
Aug 12, 2020, 8:08:35 AM (4 years ago)
Author:
chronos
Message:
  • Modified: Update locking on combobox fill.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Forms/UFormNew.pas

    r50 r74  
    5050  Core.Translator1.TranslateComponentRecursive(Self);
    5151  Core.ThemeManager1.UseTheme(Self);
    52   ComboBoxSkin.Items.Clear;
    53   for I := Low(SkinText) to High(SkinText) do
    54     ComboBoxSkin.Items.Add(SkinText[I]);
     52  ComboBoxSkin.Items.BeginUpdate;
     53  try
     54    ComboBoxSkin.Items.Clear;
     55    for I := Low(SkinText) to High(SkinText) do
     56      ComboBoxSkin.Items.Add(SkinText[I]);
     57  finally
     58    ComboBoxSkin.Items.EndUpdate;
     59  end;
    5560end;
    5661
Note: See TracChangeset for help on using the changeset viewer.