TreeView

From: René A. Krywult <"René>
Date: Mon, 24 May 2004 14:52:12 +0200 (DFT)

----boundary-LibPST-iamunique-608746771_-_-
Content-type: text/plain

Hi there,

I'm currently working on a tool for writing novels. Doing so I saw that it is necessary to implement a tree view, where the novel is the root, having chapters as child-nodes, and scenes as grandchild-nodes.

One of the things I want to achieve is to be able to move childnodes from one parent to the other by drag-and-drop.

Now, before I decide to write a model/view of my own, I try to evaluate if Dialog.Tree or Util.TreeModel/Util.TreeView can be used that way.

While it is easy to "drag" a node, I currently see no way to "drop" the node to its new location, because I don't see a way how to decide over which node the mouse key was released. Therefor I do not know where to move the dragged node to.

If there's no way to do that with Dialog.Tree or Util.TreeView/Model, does anybody know of another implementation of a TreeView for CP?

Rene


Any ideas?

Rene

=============René A. Krywult
-------------------------------------------------
Lege, lege, relege, ora, labora et invenies
___________________________________





-------------------------------------------
Versendet durch AonWebmail (webmail.aon.at)
--------------------------------------------

To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xy

To get a list of valid e-mail commands and instructions on their usage, send a message containing the word "help" to the above address.

Send any problem reports or questions related to this email list to the list owner at
   owner-blackbox{([at]})nowhere.xy

Current posting policy:

a) To post you should use the same address by which you are subscribed to the mailing list. That way, the list server will recognize you as subscriber and forward your posting immediately, without creating any overhead.

b) If, for some reason, you cannot post from the address, by which you are subscribed, your message will be moderated to avoid spam. Please understand that moderation will often cause some delay, in particular over weekends or holydays.



----boundary-LibPST-iamunique-608746771_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"

e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hh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