Tree and drag & drop

This forum is for eXpress++ general support.
Post Reply
Message
Author
c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Tree and drag & drop

#1 Post by c-tec »

Hello,
I have a document managment system that I display in a tree. Now I would like to add a document to a item with drag and drop. Is this possible ?
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

User avatar
Auge_Ohr
Posts: 1428
Joined: Wed Feb 24, 2010 3:44 pm

Re: Tree and drag & drop

#2 Post by Auge_Ohr »

hi,

XbpTreeView() have XbpWindow() as SuperClass so it must have o:dropZone.

to "add" a Item you must spezify at with Node / Subnode your Item was "drop" when o:LbUp
at that Position you can use o:itemFromPos(aPos) to find it out with Item is Target.

Design :

if you want to "drop" something into a Subnode it must be "visible"
so you need a TreeView which react on "hover" on a Node and send xbeTV_ItemExpanded
to automatic "open" Subnode.

if your combine TreeView with a Browse or ListView you should be able to "drop" it.
here a Picture what i meenImage
greetings by OHR
Jimmy

User avatar
rdonnay
Site Admin
Posts: 4813
Joined: Wed Jan 27, 2010 6:58 pm
Location: Boise, Idaho USA
Contact:

Re: Tree and drag & drop

#3 Post by rdonnay »

Rudolf -

I am on vacation, but if you will write me a test program with the treeview, I will modify the code to show you how to drop an item onto a tree branch.

Roger
The eXpress train is coming - and it has more cars.

c-tec
Posts: 379
Joined: Tue Apr 20, 2010 1:36 am
Location: SALZBURG/AUSTRIA
Contact:

Re: Tree and drag & drop

#4 Post by c-tec »

Hello Roger,
thank you, great !
Jimmys solution looks very good, thank you Jimmy, but I prefer a solution direct in eXPress++, it's easier for me.
regards
Rudolf
Rudolf Reinthaler
digital pen & paper systems
http://www.formcommander.net

Post Reply