Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
VFP6SP5 + TreeView: Stick to the record/node before up
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00778295
Message ID:
00778341
Views:
14
>Hi all
>
>I have this treeview form etc. All is well till I save the record that I have just added or edited. The pointer shifts to the last expanded node.
>
>I would like to stop this behaviour and would like to keep the node pointer to the node that was just saved. I have done a mix-match of treeview codes from various souces and added my codes as required to as follows. Not being the original author, this makes debugging tough for me. I am calling buildtree() the aftersave() of the form.
>
>Q1. If anybody can help me move the node pointer back to the node I just saved please let me know.
Rather than use the index number (which will change as nodes are added), reselect using the key value of the node:
oTV.Nodes(lcNodeKey).Selected=.t.
There is some code related to this in the download section. Search on the title "RIO"
>Q2. Also is there a way to find out properties and methods of OCXs?
On the form, select the treeview and press F1 to open the OCX control HELP service.
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform