Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Search for Values in Treeview
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00648702
Message ID:
00648864
Vues:
22
>Nick,
>
>There is no 'Highlight' property. To select a node, trigger the Node.Selected property to .T., and to have the selected node highlights when the TreeView loses focus, trigger the TreeView.HideSelection to .F..
>
>HTH.
>
>
>Wan
>
>
>>>Nick,
>>>
>>>You can check for the Text property of each node object.
>>>
>>>*&  Form.SearchTree() method.
>>>LPARAMETERS pcSearch
>>>*&
>>>LOCAL loNode
>>>*&
>>>FOR EACH loNode IN Thisform.oleTreeView.Nodes
>>>     WITH loNode
>>>          IF .Text = pcSearch
>>>               .Selected = .T.
>>>               .Expanded = .T.
>>>               .EnsureVisible()
>>>               EXIT
>>>          ENDIF
>>>     ENDWITH
>>>NEXT loNode
>>>
>>>
>>>Or the user can type in the treeview, and it works just like the windows explorer.
>>>
>>>HTH.
>>>
>>>
>>>Wan
>>>
>>>>My user enters a search value, how can I look for that value in a treeview that I have populated and then expand that particular node in the treeview highlighting the found value?
>>>>
>>>>Thanks
>>>>Nick Patel
>>
>>I have tried to use .OleTreeView.nodes.highlighted = .t., but it is not working, Is highlighting allowed?
>>
>>thanks
>>nick

Thank you Wan, you have be most helpful.

Nick Patel
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform