Home » U++ Library support » TreeCtrl » FIX - Single Click does not open/close items
Re: FIX - Single Click does not open/close items [message #13583 is a reply to message #13564] |
Tue, 15 January 2008 15:48 |
mrjt
Messages: 705 Registered: March 2007 Location: London
|
Contributor |
|
|
I'm not sure about that.
The purpose of the check in Paint is to draw the +/- indicator, but adding the check to open means that the node can be opened when canopen == false if the node has children. This makes canopen redundant and seems like incorrect behaviour.
If you want consistency I would rather remove the check from Paint:
if(m.canopen) { // or possibly: && m.child.GetCount())
Image im = m.isopen ? CtrlImg::treeminus() : CtrlImg::treeplus();
op -= im.GetSize() / 2;
w.DrawImage(op.x, op.y, im);
Why would you want to indicate to the user that the node can be opened when it can't actually be opened (canopen == false)?
[Updated on: Tue, 15 January 2008 15:53] Report message to a moderator
|
|
|
|
|
FIX - Single Click does not open/close items
By: loki on Wed, 09 January 2008 23:33
|
|
|
Re: FIX - Single Click does not open/close items
By: mrjt on Fri, 11 January 2008 10:54
|
|
|
Re: FIX - Single Click does not open/close items
By: mirek on Sat, 12 January 2008 19:50
|
|
|
Re: FIX - Single Click does not open/close items
By: loki on Mon, 14 January 2008 22:51
|
|
|
Re: FIX - Single Click does not open/close items
By: mirek on Tue, 15 January 2008 00:01
|
|
|
Re: FIX - Single Click does not open/close items
By: mrjt on Tue, 15 January 2008 15:48
|
|
|
Re: FIX - Single Click does not open/close items
By: loki on Tue, 15 January 2008 20:54
|
|
|
Re: FIX - Single Click does not open/close items
By: mirek on Wed, 16 January 2008 08:32
|
|
|
Re: FIX - Single Click does not open/close items
By: loki on Wed, 16 January 2008 16:27
|
|
|
Re: FIX - Single Click does not open/close items
By: mirek on Thu, 17 January 2008 16:23
|
|
|
Re: FIX - Single Click does not open/close items
By: loki on Thu, 17 January 2008 21:48
|
Goto Forum:
Current Time: Sun May 12 10:32:43 CEST 2024
Total time taken to generate the page: 0.02658 seconds
|