Einzelnen Beitrag anzeigen

Benutzerbild von DGL-luke
DGL-luke

Registriert seit: 1. Apr 2005
Ort: Bad Tölz
4.149 Beiträge
 
Delphi 2006 Professional
 
#16

Re: Virtual Treeview: Column-Collection wirft

  Alt 15. Feb 2007, 18:05
Ich vermute, das ist nicht falsch, denn laut Doc soll man in diesem Pointer nicht etwa einen Zeiger auf die Daten übergeben, sondern der Wert des Zeigers wird direkt in die neu alloziierten Data reingeschrieben:

Delphi-Quellcode:
// Adds a new node to the given parent node. This is simply done by increasing the child count of the
// parent node. If Parent is nil then the new node is added as (last) top level node.
// UserData can be used to set the first 4 bytes of the user data area to an initial value which can be used
// in OnInitNode and will also cause to trigger the OnFreeNode event (if <> nil) even if the node is not yet
// "officially" initialized.
// AddChild is a compatibility method and will implicitly validate the parent node. This is however
// against the virtual paradigm and hence I dissuade from its usage.
Wegen den Columns: Ach so. Sicher? Aber ich checke das ja sowieso.

Also wieder nix, was für den Bug verantwortlich sein könnte
Lukas Erlacher
Suche Grafiktablett. Spenden/Gebrauchtangebote willkommen.
Gotteskrieger gesucht!
For it is the chief characteristic of the religion of science that it works. - Isaac Asimov, Foundation I, Buch 1
  Mit Zitat antworten Zitat