jaja2005
asked on
TVirtualStringTree
I have several object tmyobject where one field is:
FMy: TVirtualStringTree;
I've created another form where i want to show this Virtual Tree and add others node with:
procedure TMyEditor.AddMonitorClick( Sender: TObject);
var Data: PTreeData;
XNode: PVirtualNode;
begin
XNode:=vt.AddChild(nil);
Data := Vt.GetNodeData(Xnode);
Data^.TNode := TNode(node);
end;
I open this form with ShowDialog. I want to creare a sort of editor. In TmyEditor
there is already am virtual component which I have dragged from palette. Let's name
it vt. Should I first create FMy in Tmyobject and then link it to the one in MyEditor
so when I add nodes with the procedure above I am changing FMy?
Can you help me? :-(
FMy: TVirtualStringTree;
I've created another form where i want to show this Virtual Tree and add others node with:
procedure TMyEditor.AddMonitorClick(
var Data: PTreeData;
XNode: PVirtualNode;
begin
XNode:=vt.AddChild(nil);
Data := Vt.GetNodeData(Xnode);
Data^.TNode := TNode(node);
end;
I open this form with ShowDialog. I want to creare a sort of editor. In TmyEditor
there is already am virtual component which I have dragged from palette. Let's name
it vt. Should I first create FMy in Tmyobject and then link it to the one in MyEditor
so when I add nodes with the procedure above I am changing FMy?
Can you help me? :-(
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Amazing....