RE: TreeView

From: Wijck, Bart van <"Wijck,>
Date: Tue, 1 Jun 2004 09:48:43 +0200

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

And just possibly with the possibility to use more icons as well (big
restriction on the tree view at the moment.

Regards, Bart

-----Original Message-----
From: René A. Krywult [mailto:rene.krywult{([at]})nowhere.xy
Sent: Monday, May 24, 2004 2:52 PM
To: blackbox{([at]})nowhere.xy
Subject: TreeView


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.


-- 
The contents of this e-mail are intended for the named addressee only. It
contains information that may be confidential. Unless you are the named
addressee or an authorized designee, you may not copy or use it, or disclose
it to anyone else. If you received it in error please notify us immediately
and then destroy it. 
--------------------------------------------
To unsubscribe from this mailing list, send a message containing the word "unsubscribe" to:
   blackbox-request{([at]})nowhere.xyTo 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.xyCurrent 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-1330059239_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzc1xmY2hhcnNldDAgQXJpYWw7fQ0Ke1xmMVxmbW9kZXJuIENvdXJpZXIgTmV3O30NCntcZjJc
Zm5pbFxmY2hhcnNldDIgU3ltYm9sO30NCntcZjNcZm1vZGVyblxmY2hhcnNldDAgQ291cmllciBO
ZXc7fX0NCntcY29sb3J0YmxccmVkMFxncmVlbjBcYmx1ZTA7XHJlZDBcZ3JlZW4wXGJsdWUyNTU7
fQ0KXHVjMVxwYXJkXHBsYWluXGRlZnRhYjM2MCBcZjBcZnMyMCBBbmQganVzdCBwb3NzaWJseSB3
aXRoIHRoZSBwb3NzaWJpbGl0eSB0byB1c2UgbW9yZSBpY29ucyBhcyB3ZWxsIChiaWdccGFyDQpy
ZXN0cmljdGlvbiBvbiB0aGUgdHJlZSB2aWV3IGF0IHRoZSBtb21lbnQuXHBhcg0KXHBhcg0KUmVn
YXJkcywgQmFydCBccGFyDQpccGFyDQotLS0tLU9yaWdpbmFsIE1lc3NhZ2UtLS0tLVxwYXINCkZy
b206IFJlblwnZTkgQS4gS3J5d3VsdCBbbWFpbHRvOnJlbmUua3J5d3VsdEBhb24uYXRdXHBhcg0K
U2VudDogTW9uZGF5LCBNYXkgMjQ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m9ibGVtIHJlcG9ydHMgb3IgcXVlc3Rpb25zIHJlbGF0ZWQgdG8gdGhpcyBlbWFpbCBsaXN0
IHRvIHRoZSBsaXN0IG93bmVyIGF0XHBhcg0KICAgb3duZXItYmxhY2tib3hAb2Jlcm9uLmNoXHBh
cg0KXHBhcg0KQ3VycmVudCBwb3N0aW5nIHBvbGljeTpccGFyDQpccGFyDQphKSBUbyBwb3N0IHlv
dSBzaG91bGQgdXNlIHRoZSBzYW1lIGFkZHJlc3MgYnkgd2hpY2ggeW91IGFyZSBzdWJzY3JpYmVk
IHRvIHRoZSBtYWlsaW5nIGxpc3QuIFRoYXQgd2F5LCB0aGUgbGlzdCBzZXJ2ZXIgd2lsbCByZWNv
Z25pemUgeW91IGFzIHN1YnNjcmliZXIgYW5kIGZvcndhcmQgeW91ciBwb3N0aW5nIGltbWVkaWF0
ZWx5LCB3aXRob3V0IGNyZWF0aW5nIGFueSBvdmVyaGVhZC5ccGFyDQpccGFyDQpiKSBJZiwgZm9y
IHNvbWUgcmVhc29uLCB5b3UgY2Fubm90IHBvc3QgZnJvbSB0aGUgYWRkcmVzcywgYnkgd2hpY2gg
eW91IGFyZSBzdWJzY3JpYmVkLCB5b3VyIG1lc3NhZ2Ugd2lsbCBiZSBtb2RlcmF0ZWQgdG8gYXZv
aWQgc3BhbS4gUGxlYXNlIHVuZGVyc3RhbmQgdGhhdCBtb2RlcmF0aW9uIHdpbGwgb2Z0ZW4gY2F1
c2Ugc29tZSBkZWxheSwgaW4gcGFydGljdWxhciBvdmVyIHdlZWtlbmRzIG9yIGhvbHlkYXlzLlxw
YXINClxwfX0ALS0
----boundary-LibPST-iamunique-1330059239_-_---
Received on Tue Jun 01 2004 - 09:48:43 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:28:44 UTC