:: [DNG] Need help to add/delete strin…
Página superior
Eliminar este mensaje
Responder a este mensaje
Autor: Edward Bartolo
Fecha:  
A: dng
Asunto: [DNG] Need help to add/delete strings to/from a treeview.
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');

And:

if listview.items.count > 0
then listview.Items.Delete(0); // if I want to delete the first string

Edward