Trouble synchronizing generic TList and TListBox
问题 I have trouble keeping a TListbox in sync with a TList. Each time an item is added to a generic TList, OnNotify is called and the callback calls just one procedure: create_gradients . Its code is below: procedure TColor_Dialog.create_gradients; var Editor: TGradient_Editor; eGradient: Int32; y: single; s: string; begin List_Names.Clear; List_Gradients.Clear; for eGradient := 0 to FColor_Editor.nGradients - 1 do begin List_Names.Items.Add (FColor_Editor [eGradient].Check_Rainbow.Text); end; //