How do I add a new node to the currently selected node
(i.e:Add a grandson to the selected grandparent, beetween several grandparents)
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
I was so close and yet so far...
I tryied:
Node1.Value=TV.SelectedNode
Node1.Value=Node2.New Node
Wich of course didn't work....
Thanks Erel
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
OK, so I got that working bit, now I need to remove all created nodes up to the root, clearing the tree object...
BUT, I do not wich to dispose of the treeview object...
I tryied Tree.RemoveAllNodes method, but nothing gets deleted...
What am I missing?
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
This is a work in progress so some bugs may occur or some part of code be missing..
only the spb file is uploaded...
baiscally, when the user shoses "New", I have to check if a file is in use and warn the user about it, if he cooses to continue, the the current treeview, should be cleared of all nodes and be made "Blank"....
Since it uses treeview, controlsEx.dll is required,lol...
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
Got it working, using RemoveAllNodes, but I would hav sworn, i had already tried it, and failled....
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
In order to have a context nemu, I was "forced" to add formlib...
Figured out how to add a context menu, so far so good...
New problems arise...
I seem to only need One Node Object to create how many sub-levels I want or need in the treeView...But I NEED to limit the node to 3 Levels...
Root,Category and Key asin Parent, son and grandson...
How?
And how do I delete a selected Node?
I tryied removenode, removenodeat with no success...
HELP???
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!
Your example is almost perfect for my aplication, and I understand how the level catching works...
But I still have one issue(for the time being...)...
I have 1 Tree Object (tree) and 2 Node Objects(Parent and Node in order to make sense of your example...)
The 3 level limitation works great...but what is I wish to limit it to just 2 levels?
I tryed to alter your example but I got nowere...
Here's my project as is...
need both controlsEx and FormLib dlls...
My intension is:
Tree Root is the INI Filename (setted for now as Default.INI)
Key and Comment can exist in any alowed sub level...
ie:
+Default.INI
|--Key01
|--Comment01
+-Category01
XX|-Key02
XX|-Comment02
BUT Category can only be one level deep..
ie:
+Default.INI
|--Key01
|--Comment01
+-Category01
XX|-Key02
XX|-Comment02
XX|-Category02 - Cannot exist
PS:
Hopefully this will become a structured INI file creator, wich I believe will help those of us who relly on them for some settings...setting
__________________
Paulo Gomes - Porto, Portugal - Living/Working in France
Mobile Device: Samsung Galaxy S, Android 2.3.4 CUstom ROM
Laptop: Toshiba NB100-130 (running on Win7Ultimate)
My Posts helped you? Consider Buying me a Porto Glass!