Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Selecting a Tree View NODE
Message
De
28/12/1999 12:56:47
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
28/12/1999 11:16:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00309189
Message ID:
00309302
Vues:
31
>Hi
>
>a node is selected in a treeView, I can get the Node.text value.
>I want to higlight the same node when I go to another treeview that have the same node.text.
>
>How to do this???
>basicly, traversing a treeview and selecting a node based on text value.
>
>Mo


Hope this helps :
*Node.click
*** OLE Control Event ***
LPARAMETERS node
WITH this
   If node.Children > 0
	  activate screen
      ? Node.Child.Text
      lnIndex  = Node.Child.Index
      do while lnIndex # Node.Child.LastSibling.Index
         ? .Nodes(lnIndex).Next.Text
         lnIndex = .Nodes(lnIndex).Next.Index
      enddo
   EndIf
	
	lnIndent = 0
	lnIndex = Node.Index
	DO while lnIndex # Node.Root.Index
		lnIndex = .Nodes(lnIndex).Parent.Index
		lnIndent = lnIndent + 1
	ENDDO
ENDWITH
node.ensurevisible
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform