Home » U++ Library support » TreeCtrl » FIX - Single Click does not open/close items
Re: FIX - Single Click does not open/close items [message #13589 is a reply to message #13583] |
Tue, 15 January 2008 20:54 |
loki
Messages: 36 Registered: October 2007
|
Member |
|
|
Ok. I have corrected it to match the painting. But if the painting is wrong, my correction is also wrong...
In other words we should change the painting. I think you are right. (I had an other meaning about canopen).
1) (canopen && childcount > 0) ---> +/- is drawn.
2) (canopen && childcount <= 0) ---> +/- is not drawn.
3) (!canopen && childcount > 0) ---> +/- is drawn in disabled state (grey)
4) (!canopen && childcount <= 0) ---> +/- is not drawn.
if(m.child.GetCount()) {
Image im;
if(m.canopen)
im = m.isopen ? CtrlImg::treeminus() : CtrlImg::treeplus();
else
im = m.isopen ? CtrlImg::treeminusgrey() : CtrlImg::treeplusgrey();
op -= im.GetSize() / 2;
w.DrawImage(op.x, op.y, im);
}
treeminusgrey and treeplusgrey are new. I don't know if there is a drawing function which could grey the normal ones.
Is this ok?
greetings
loki
[Updated on: Tue, 15 January 2008 21:40] 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 11:21:45 CEST 2024
Total time taken to generate the page: 0.01692 seconds
|