|Buttons in TreeEditor twinkle on item expand/collapse [message #646880]
||Sun, 02 January 2011 02:27
| No real name
Registered: January 2011
I managed to build a tree with check box on some items but not all (and many columns).
I use virtual tree, tree editor for SWT.CHECK buttons, and EraseItem listener on the tree, to make my buttons background follows the tree items background on selection...
it works fine, but there still a little artefact I can't figure to avoid. When I collapse or expand an item in my tree, the button in the item and in items above twinkle, they are erased then redrawn. Any idea on how I can avoid this ?
I think I could find a way to intercept buttons erasing, then I'll be able to select which one to erase or not, but I am not familiar with swt.
[Updated on: Sun, 02 January 2011 02:30]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01588 seconds