:: [DNG] Need help to add/delete strin…
トップ ページ
このメッセージを削除
このメッセージに返信
著者: Edward Bartolo
日付:  
To: dng
題目: [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