Einzelnen Beitrag anzeigen

Benutzerbild von hitzi
hitzi

Registriert seit: 2. Jan 2003
Ort: Eibau
768 Beiträge
 
Delphi 2010 Professional
 
#2

Re: TVirtualTreeView gibt nicht alles frei

  Alt 3. Dez 2004, 14:35
Um's mit den Worten des Entwicklers (Mike) zu erklären:

Zitat:
The key for VT to be so fast is to do things only if necessary. So, beside other things, it keeps a flag that tells it whether a node has been used or not. "Used" in this context means a nodes has been touch either because there was an iteration including that node or it has been displayed at least once. This flag indicates a socalled initialzed node and only initialized nodes are also passed to the application via OnFreeNode when they are about to be destroyed.

What you can do is to initialize a node explicitely (ValidateNode) or use the native way to VT (OnInitNode, OnInitChildren) and fill your data only when you initialize a node.
Ein vstContacts.ValidateNode(node, False); beim Datenfüllen erfüllt den Zweck.

Gruss
Thomas
Besucht doch mal http://www.hitziger.net
  Mit Zitat antworten Zitat