Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: Vilhelm-Ion Praisach
  Where is Vilhelm-Ion Praisach?
 Resita
 Romania
 Vilhelm-Ion Praisach
 To: reza khajehzadeh
  Where is reza khajehzadeh?
 
 Iran
 reza khajehzadeh
 Tags
Subject: RE: treeview
Thread ID: 416320 Message ID: 416322 # Views: 82 # Ratings: 4
Version: Visual FoxPro 9 SP2 Category: General VFP Topics
Date: Friday, December 26, 2014 8:06:59 PM         
   


> Hi to all dear freind!
> How can i load a form or 'do prg' command within treeview?(sorry for english)
> best regards

You have the general events like click, dblclick or keypress

DO a form with the selected node (item) caption

*PROCEDURE MyTreeView.click
DO myprg WITH MyTreeView.SelectedItem
DO FORM myform WITH MyTreeView.SelectedItem.text
END PROCEDURE


and also specific events like nodeclick, collapse or expand

DO a form with the selected node (item) ID

*PROCEDURE MyTreeView.NodeClick
LPARAMETERS node
DO myprg WITH node
DO FORM myform WITH MyTreeView.SelectedItem.key
ENDPROC 


each node has important properties like
key		the node ID
parent the parent node object
firstsibling the first sibling object (first node with the same parent)

children number of children
child the first child node, object

text the node caption
fullpath the the node's caption and of all its predecessors


Respectfully

ENTIRE THREAD

treeview Posted by reza khajehzadeh @ 12/26/2014 7:38:35 PM
RE: treeview Posted by Vilhelm-Ion Praisach @ 12/26/2014 8:06:59 PM
RE: treeview Posted by reza khajehzadeh @ 12/27/2014 6:55:03 AM
RE: treeview Posted by Jun Tangunan @ 12/26/2014 11:30:28 PM
RE: treeview Posted by reza khajehzadeh @ 12/27/2014 6:55:51 AM
RE: treeview Posted by Jun Tangunan @ 12/27/2014 8:35:20 AM
RE: treeview Posted by reza khajehzadeh @ 12/27/2014 12:45:56 PM