Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. google. articles. downloads. faq. members. weblogs. file info. rss.
 From: reza khajehzadeh
  Where is reza khajehzadeh?
 
 Iran
 reza khajehzadeh
 To: Vilhelm-Ion Praisach
  Where is Vilhelm-Ion Praisach?
 Resita
 Romania
 Vilhelm-Ion Praisach
 Tags
Subject: RE: treeview
Thread ID: 416320 Message ID: 416335 # Views: 44 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: General VFP Topics
Date: Saturday, December 27, 2014 6:55:03 AM         
   


> > 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

Thanks sir! very appreciate

:-D

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