Startseite ¦  was ist neu ¦  programmier tips ¦  indy artikel ¦  intraweb artikel ¦  informationen ¦  links ¦  interviews ¦  sonstiges
kylix ¦  tutorials ¦  online shop ¦  fotos ¦  Add&Win Gewinnspiel


Willkommen Gast. Bitte einloggen oder registrieren.
21.05.2012, 12:15:33
Übersicht Hilfe Suche Einloggen Registrieren

+  SwissDelphiCenter Forum
|-+  English Forums
| |-+  General Forum
| | |-+  Add New Item in TreeView node
« vorheriges nächstes »
Seiten: [1] Drucken
Autor Thema: Add New Item in TreeView node  (Gelesen 2031 mal)
rudytantra
Newbie
*
Offline Offline

Beiträge: 2



« am: 10.09.2002, 10:25:39 »

Hi everybody,

I don't have any idea, how to add a new item into a TreeView at run-time.
So, user just key in the new item and its level, and with 1 click, it will be added to the TreeView and refreshed.

Thanks,
Rudy
Gespeichert
Tokter
Gast
« Antworten #1 am: 10.09.2002, 11:13:12 »

I don't have access to Delphi here, so I can't give you the exact names of the procedures. But basicly it's something like:

TreeView1.Items.AddNode();
or
TreeView1.Items.AddChildNode();

Just look in the Help for the Add commands...
Gespeichert
rudytantra
Newbie
*
Offline Offline

Beiträge: 2



« Antworten #2 am: 11.09.2002, 04:18:36 »

Thanks Tokter,

and also how can I manage to insert the new item into certain position in the TreeView.

Best,
Rudy
Gespeichert
Horst Kniebusch
Hero Member
*****
Offline Offline

Beiträge: 611


128288739
WWW
« Antworten #3 am: 11.09.2002, 15:48:53 »

This code will add a new subitem to the first item in the list:

Code:

Treeview1.items.addChild(Treeview1.items.item[0],'Hallo');


ciao[/code]
Gespeichert

[img src=\"http://www.againsttcpa.com/images/AgainstTCPA-Log01Small.gif\"]
Seiten: [1] Drucken 
« vorheriges nächstes »
Gehe zu:  


Einloggen mit Benutzername, Passwort und Sitzungslänge

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006, Simple Machines LLC Prüfe XHTML 1.0 Prüfe CSS