Alan Colburn wrote: > for i := 1 to 19 do > begin > gRadioArray[i].Items.Clear; > with cbxPerformanceLevels do > //add items here, depending on what user selected > end; > > The code works fine, and it's simple. The problem is that it's slow. On my > machine I can watch each RadioGroup be cleared, one at a time, before items > are added in.
Maybe you could construct a temporary TStringList that contains the number of items you want, and then just call gRadioArray[i].Items.Assign() to copy all the items at once. Also, you can try LockWindowUpdate to suspend updating of your form while you tell all the controls to change their appearance. -- Rob _______________________________________________ Delphi mailing list -> [email protected] http://www.elists.org/mailman/listinfo/delphi

