Autor Beitrag
yasheena
Hält's aus hier
Beiträge: 1



BeitragVerfasst: Sa 10.01.09 17:27 
Hi,

um einen TreeView mit Daten zu befüllen nutzt man normalerweise das Items Array im Object-Inspector. Nun will ich aber eine dynamische Datenstruktur in einen TreeView laden, die aus einer Datenbank kommt. Ein passendes Items-Array zusammenzustellen war nicht so schwierig, dass es die TreeView-Komponente annimmt ist das eigentliche Problem: sowohl die verschiedenen Events, als auch vor/nach $Main->loadResource(__FILE__) oder $Main->show() scheint nicht der passende Ort zu sein, um dem TreeView-Objekt ein eigenes Items-Array zuzuweisen. Ist es denn nicht möglich, ein TreeView-Objekt bereits für die erste Anzeige in der Applikation dynamisch mit Daten zu befüllen?

Grüße,
Wolfgang
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Sa 10.01.09 20:18 
Doch, wieso nicht? Wie sind die Daten denn in der Datenbank abgelegt?
user profile iconyasheena hat folgendes geschrieben Zum zitierten Posting springen:
...$Main->loadResource(__FILE__) oder $Main->show()...

Btw: Das ist kein Delphi. :gruebel:

_________________
Na denn, dann. Bis dann, denn.
mkinzler
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 4106
Erhaltene Danke: 13


Delphi 2010 Pro; Delphi.Prism 2011 pro
BeitragVerfasst: Sa 10.01.09 20:54 
Sieht eher nach PHP aus

_________________
Markus Kinzler.
matze
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 4613
Erhaltene Danke: 24

XP home, prof
Delphi 2009 Prof,
BeitragVerfasst: Sa 10.01.09 22:44 
ja ist ja auch die PHP Sparte!

_________________
In the beginning was the word.
And the word was content-type: text/plain.
alzaimar
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 2889
Erhaltene Danke: 13

W2000, XP
D6E, BDS2006A, DevExpress
BeitragVerfasst: Sa 10.01.09 22:50 
:rofl:

_________________
Na denn, dann. Bis dann, denn.