Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tree view menu
Message
 
To
17/03/2004 14:41:15
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Title:
Miscellaneous
Thread ID:
00887215
Message ID:
00887254
Views:
9
Create a memory variable. When a node is selected place the index or key of the node in the variable. My apps typically have a sysfile(DBF) - it maintains user (company) data, DBF maps, etc. If you have a sysfile.dbf, or a samilar static file, when you close the app, place the value of your memory variable in a field in your sysfile. In your treeviews init event, read the index from your sysfile, and "select" on your tree view.

>Hi all, i'm trying to do a menu using treeview control to show users options and preserve the last option used next time they start the app. I put a treeview control on a form and this in the init event of it:
>
>LOCAL o, oNode
>o= thisform.oletree
>oNode=o.Nodes.Add(,1,"1_", "Compraventa",0)
>oNode.Image="manos"
>o.Nodes.Add(,1,"2_", "Utilidades",0)
>o.Nodes.Add(,1,"3_", "Ayuda",0)
>o.Nodes.Add("1_", 4, "4_", "Contratos",0)
>
>image "manos" is on imalistcontrol on same form, but this oNode.image="manos" shows an error.
>
>i need to save last option used in a local table and show this option next time user log in the app. Also i need to show images for each option, Some ideas?
>
>Thanks ....
>john harold
Imagination is more important than knowledge
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform