U++ framework
Do not panic. Ask here before giving up.

Home » U++ Library support » TreeCtrl » Like the new Drag and Drop TreeCtrl but...
Re: Like the new Drag and Drop TreeCtrl but... [message #11267 is a reply to message #11234] Wed, 29 August 2007 11:30 Go to previous messageGo to previous message
mirek is currently offline  mirek
Messages: 14291
Registered: November 2005
Ultimate Member
nixnixnix wrote on Tue, 28 August 2007 08:05

Yes! Of course. So in fact the option control is just the square checkbox.

I found what might be a bug whilst playing with the D&D tree control. If you drag and drop a node onto one of its children or granchildren etc the child accepts the parent node and in effect a copy of the parent and all its children appears to be made. However, there are a finite number of option controls and so a crash eventually results.

In my opinion, a child node should always refuse its parent (or grandparent etc). If a user wants to rearrange their tree so radically, they should explicitly copy the parent node or do two or more separate operations to achieve their goal.





Do not quite understand this; I believe I have correctly managed this in the code.

What do you mean by "finite number of option controls" ?

(BTW, obviously, embedded ctrls and copy is a trouble - default D&D does not account for that).

Mirek
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: TreeCtrl Scroll triggers Parent Refresh
Next Topic: hierarchical tree data structure & binding to TreeCtrl
Goto Forum:
  


Current Time: Tue Oct 27 03:08:04 GMT+1 2026

Total time taken to generate the page: 1.37830 seconds