Hello,
Here is an example project using gui\treeViewControl.
It's a reasonable starting point for anyone wishing to use treeViewControl. Most (if not all) the tree operations have been implemented - moving items around with both keyboard actions as well as drag and drop with the mouse, inserting brothers and sons, deleting, copy and pasting, and undo.
The implementation is in a form - the treeViewControl is attached to a custom control in the form. With the new GUI, of course, the code can be easily be transferred to a dialog.
Steve
PS. Zip attachment updated on 7th June. "Enter" key now terminates tree text editing
<<Thomas Linder Puls: Attachment deleted (see below)>>
-
- Posts: 5
- Joined: 3 May 2000 23:01
-
- VIP Member
- Posts: 56
- Joined: 31 Mar 2001 23:01
-
- VIP Member
- Posts: 56
- Joined: 31 Mar 2001 23:01
Hi,
Here is another update. This project has a dialog with 2 adjacent custom controls. The left one has the normal treeViewControl, the right one is a simple control which just lists the tree node texts, vertically positioned to be in line with the tree nodes.
This could be of use (as a starting point) for listing related data from another database, or for drawing links to the tree nodes.
cheers
Steve
Here is another update. This project has a dialog with 2 adjacent custom controls. The left one has the normal treeViewControl, the right one is a simple control which just lists the tree node texts, vertically positioned to be in line with the tree nodes.
This could be of use (as a starting point) for listing related data from another database, or for drawing links to the tree nodes.
cheers
Steve
- Attachments
-
- treeViewControlExample.zip
- TreeViewControl with adjacent data
- (35.23 KiB) Downloaded 1879 times
-
- VIP Member
- Posts: 56
- Joined: 31 Mar 2001 23:01
Updated for Vip7003
There are a couple of changes required in the pfc treeviewcontrol, and ideally in vpi (but I wouldn't (and didn't) make the vpi ones). When you compile, you will find there are errors and will need to change integer to keymodifier (I used uncheckedconvert). But it's simple enough. You will have to change the file properties to allow them to be edited.
Steve
There are a couple of changes required in the pfc treeviewcontrol, and ideally in vpi (but I wouldn't (and didn't) make the vpi ones). When you compile, you will find there are errors and will need to change integer to keymodifier (I used uncheckedconvert). But it's simple enough. You will have to change the file properties to allow them to be edited.
Steve
- Attachments
-
- treeViewControl7003.zip
- Manipulating data in treeviewControl
- (35.29 KiB) Downloaded 1301 times
-
- VIP Member
- Posts: 56
- Joined: 31 Mar 2001 23:01