Re: [DNG] Need help to add/delete strings to/from a treeview.

2016-03-15 Thread Edward Bartolo
Hi, Lazarus Object Pascal and Gtk+ 2 use completely different implementations for their widgets. Lazarus close follows Delphi in which components (widgets) are manipulated in code using an object oriented coding while Gtk+ 2 apparently uses common structures to access and modify a widget's

Re: [DNG] Need help to add/delete strings to/from a treeview.

2016-03-15 Thread Fernando M. Maresca
Hi, I do not exactly know about freepascal details, but inside a gtk listview model, there has to be something like an array or equivalent object that represents the row, so you can have values for every column in the listview model. So I think that should be a constructor for such an object,

[DNG] Need help to add/delete strings to/from a treeview.

2016-03-15 Thread Edward Bartolo
Hi, I am using a GtkTreeView widget to use a listview. I need to add/delete strings to/from the tree view but have not figured out how this supposedly simple operation can be done. In Lazarus Object Pascal, the above is as simple as it can be: listview.Items.Add('the string I need to add');