[BLACKBOX] TreeView

From: Rene A. Krywult <"Rene>
Date: Fri, 21 Jan 2011 14:56:08 +0100

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

Hi,

did any of you ever do a TreeView where the nodes can be dragged-and-dropped?

If not, what would be the general idea of how to go about this?

I don't think that the Notifier could be used, because by releasing the button, the tree.Selected() does not change.

Using the DropMsg doesn't work, because the view is the Tree, and not the node, so it does not fire in this case.

Two ways I thought of:
a) Using the notifier and a RM interclick. Both mousekey actions result in the op parameter of the notifier. So the second mouse down (in this case: right mouse down) would happen before the first mouse up.

b) Using two parallel TreeViews on the same Dialog.Tree variable, so that the DropMsg kann be used.

c) using a wrapper handling the control messages.

Solution a is not really a drag-and-drop, though, solution b is really awkward, IMHO, and I have no idea about solution c.

Any better ideas?

Rene
-- 
Sicherer, schneller und einfacher. Die aktuellen Internet-Browser -
jetzt kostenlos herunterladen! http://portal.gmx.net/de/go/atbrowser
----
To unsubscribe, send a message with body "SIGNOFF BLACKBOX" to LISTSERV{([at]})nowhere.xy----boundary-LibPST-iamunique-1468555678_-_-
Content-type: application/rtf
Content-transfer-encoding: base64
Content-Disposition: attachment; filename="rtf-body.rtf"
e1xydGYxXGFuc2lcYW5zaWNwZzEyNTJcZnJvbXRleHQgXGRlZmYwe1xmb250dGJsDQp7XGYwXGZz
d2lzcyBBcmlhbDt9DQp7XGYxXGZtb2Rlcm4gQ291cmllciBOZXc7fQ0Ke1xmMlxmbmlsXGZjaGFy
c2V0MiBTeW1ib2w7fQ0Ke1xmM1xmbW9kZXJuXGZjaGFyc2V0MCBDb3VyaWVyIE5ldzt9fQ0Ke1xj
b2xvcnRibFxyZWQwXGdyZWVuMFxibHVlMDtccmVkMFxncmVlbjBcYmx1ZTI1NTt9DQpcdWMxXHBh
cmRccGxhaW5cZGVmdGFiMzYwIFxmMFxmczIwIEhpLFxwYXINClxwYXINCmRpZCBhbnkgb2YgeW91
IGV2ZXIgZG8gYSBUcmVlVmlldyB3aGVyZSB0aGUgbm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1dGlvbiBhIGlzIG5vdCByZWFsbHkgYSBkcmFnLWFu
ZC1kcm9wLCB0aG91Z2gsIHNvbHV0aW9uIGIgaXMgcmVhbGx5IGF3a3dhcmQsIElNSE8sIGFuZCBJ
IGhhdmUgbm8gaWRlYSBhYm91dCBzb2x1dGlvbiBjLlxwYXINClxwYXINCkFueSBiZXR0ZXIgaWRl
YXM/IFxwYXINClxwYXINClJlbmVccGFyDQotLSBccGFyDQpTaWNoZXJlciwgc2NobmVsbGVyIHVu
ZCBlaW5mYWNoZXIuIERpZSBha3R1ZWxsZW4gSW50ZXJuZXQtQnJvd3NlciAtXHBhcg0KamV0enQg
a29zdGVubG9zIGhlcnVudGVybGFkZW4hIGh0dHA6Ly9wb3J0YWwuZ214Lm5ldC9kZS9nby9hdGJy
b3dzZXJccGFyDQpccGFyDQpccGFyDQotLS0tXHBhcg0KVG8gdW5zdWJzY3JpYmUsIHNlbmQgYSBt
ZXNzYWdlIHdpdGggYm9keSAiU0lHTk9GRiBCTEFDS0JPWCIgdG8gTElTVFNFUlZATElTVFMuT0JF
Uk9OLkNIfX0ASVNUUw==
----boundary-LibPST-iamunique-1468555678_-_---
Received on Fri Jan 21 2011 - 14:56:08 UTC

This archive was generated by hypermail 2.3.0 : Thu Sep 26 2013 - 06:30:19 UTC