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 group.

There is also an outstanding enhancement at 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 for:
public static final int BS_MULTILINE = 0x2000;

and then in 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.

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

Current Time: Sun Sep 15 17:56:08 GMT 2019

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

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

Back to the top