TListBox lazarus / 5-Lazarus Extra Components ---------------------------------------------------------------------- Guest · 2005-06-09 20:09 Hi, I want to know how can I add a item in a TListBox in Run Time, in Delphi I do  TListBox.AddItem(Item: String; AObject: TObject); but in Lazarus AddItem is not a member of TListBox ---------------------------------------------------------------------- Giuseppe Ridinò · 2005-06-09 20:46 To add a string: Code: [Select]TListBox.Items.Add(Item: myString); To add an object: Code: [Select]TListBox.Items.AddObject(Item: myString; AObject: TObject); ---------------------------------------------------------------------- Anonymous · 2005-06-10 18:48 Thank you I can do it. Another question, somebody know how can I find the propertys  and method of the lazarus components? ---------------------------------------------------------------------- Giuseppe Ridinò · 2005-06-11 07:37 Quote from: "Anonymous"Thank you I can do it. Another question, somebody know how can I find the propertys  and method of the lazarus components? A simple way could be by using the code completition available in the lazarus code editor. For example: type Code: [Select]TListBox. or Code: [Select]myTListBoxObject. and just after the . (dot) press +, then a popup menu should provide with a list of all properties/methods of that class/object. ---------------------------------------------------------------------- matthijs · 2005-06-11 07:42 Another way: press and click on a class and the ide will jump to the place it is defined. ( Then document it and add it to the lazarus documentation.   ) There is some basic information available at http://lazarus- ccr.sourceforge.net/docs/lcl/ But as you can see there, there is still a lot to be done. F.i. explication of what things do, how they work and how they are to be used. ---------------------------------------------------------------------- Anonymous · 2006-03-29 13:55 Quote from: "Guest"Hi, I want to know how can I add a item in a TListBox in Run Time, in Delphi I do  TListBox.AddItem(Item: String; AObject: TObject); but in Lazarus AddItem is not a member of TListBox