[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: Subclassing SWT Tree

Rich Kulp wrote:

Hi,

This example shows how you would use Tree itself without subclassing to allow you to draw on the Tree itself.


http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet226.java


Hi,

I did try owner-draw, but it isn't good enough for what I want to do, because I actually need to draw to the left of the disclosure controls. On Windows, the disclosure controls are always up against the left side of the tree control, and there's no clean way to move them over within the tree control itself, as far as I can tell (even in native Win32 code). That's why I think I need to draw to the left, outside the tree control, and keep track of the tree's scroll position in order to know what to draw.

Thanks,

nj