|Solution for wrapping SWT Button Text [message #460926]
||Mon, 12 September 2005 01:36
| Barrie Treloar
Registered: July 2009
Way back in Dec 2001 there was a post about "How can I wrap SWT Button |
text?" to the news.eclipse.tools group.
There is also an outstanding enhancement at
https://bugs.eclipse.org/bugs/show_bug.cgi?id=13802 for "Request : WRAP
style for Button".
I have not tested this under other platforms besides Windows XP but it
looks like a simple solution of adding a new constant to OS.java for:
public static final int BS_MULTILINE = 0x2000;
and then in Button.java in the widgetStyle() method after the SWT.FLAT
if ((style & SWT.WRAP) != 0) bits |= OS.BS_MULTILINE;
These changes have been added as attachments to the bugzilla enhancement.
Hopefully they are of value to others.
Powered by FUDForum
. Page generated in 0.01529 seconds