Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Solution for wrapping SWT Button Text
Solution for wrapping SWT Button Text [message #460926] Mon, 12 September 2005 01:36
Barrie Treloar is currently offline Barrie TreloarFriend
Messages: 11
Registered: July 2009
Junior Member
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
check:
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.

Barrie
Previous Topic:how to display multi-selectable images
Next Topic:SelectionListener
Goto Forum:
  


Current Time: Tue Jun 25 07:25:02 GMT 2019

Powered by FUDForum. Page generated in 0.01529 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top