Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » SWT Label with SWT.WRAP and SWT.CENTER is wrapped, but not centered (Mac OS X)
SWT Label with SWT.WRAP and SWT.CENTER is wrapped, but not centered (Mac OS X) [message #479073] Sat, 08 August 2009 21:30 Go to next message
Robert Retzbach is currently offline Robert RetzbachFriend
Messages: 1
Registered: July 2009
Junior Member
Hi,

I'm using Galileo Eclipse for RCP/Plug-in Developers (Build id:
20090619-0625) with Cocoa Support on Mac OS X 10.5.7 (Build 9j61) and
tried to center wrapped text of a Label.
As mentioned by rcjsuen in #eclipse at freenode this works on WinXP in
both Ganymede and Galileo. I checked and found out that Cocoa's multi line
labels support centered text that wraps. So I would assume that this might
be SWT bug.
Please analyse this issue. Thanks.

This is how it looks like:
http://img194.imageshack.us/img194/3346/bild18.png

This is how it should look like (created with xcode):
http://img196.imageshack.us/img196/7934/bild17a.png

Snippet to reproduce:
http://pastebin.com/f5b0ac349

Best regards
Robert
Re: SWT Label with SWT.WRAP and SWT.CENTER is wrapped, but not centered (Mac OS X) [message #479312 is a reply to message #479073] Mon, 10 August 2009 16:42 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Robert Retzbach wrote:
> Hi,
>
> I'm using Galileo Eclipse for RCP/Plug-in Developers (Build id:
> 20090619-0625) with Cocoa Support on Mac OS X 10.5.7 (Build 9j61) and
> tried to center wrapped text of a Label.
> As mentioned by rcjsuen in #eclipse at freenode this works on WinXP in
> both Ganymede and Galileo. I checked and found out that Cocoa's multi
> line labels support centered text that wraps. So I would assume that
> this might be SWT bug.
> Please analyse this issue. Thanks.
>
> This is how it looks like:
> http://img194.imageshack.us/img194/3346/bild18.png
>
> This is how it should look like (created with xcode):
> http://img196.imageshack.us/img196/7934/bild17a.png
>
> Snippet to reproduce:
> http://pastebin.com/f5b0ac349

Please enter a bug about it and attach the snippet code. Good idea to
search for an existing bug, first.

http://bugs.eclipse.org/bugs/

Hope this helps,
Eric
Re: SWT Label with SWT.WRAP and SWT.CENTER is wrapped, but not centered (Mac OS X) [message #479703 is a reply to message #479073] Wed, 12 August 2009 06:09 Go to previous messageGo to next message
Peter Kanzler is currently offline Peter KanzlerFriend
Messages: 9
Registered: July 2009
Junior Member
It should be already fixed in the newest 3.6 Build...

I reported it some time ago:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=276110

cheers
Peter

Robert Retzbach wrote:
> Hi,
>
> I'm using Galileo Eclipse for RCP/Plug-in Developers (Build id:
> 20090619-0625) with Cocoa Support on Mac OS X 10.5.7 (Build 9j61) and
> tried to center wrapped text of a Label.
> As mentioned by rcjsuen in #eclipse at freenode this works on WinXP in
> both Ganymede and Galileo. I checked and found out that Cocoa's multi
> line labels support centered text that wraps. So I would assume that
> this might be SWT bug.
> Please analyse this issue. Thanks.
>
> This is how it looks like:
> http://img194.imageshack.us/img194/3346/bild18.png
>
> This is how it should look like (created with xcode):
> http://img196.imageshack.us/img196/7934/bild17a.png
>
> Snippet to reproduce:
> http://pastebin.com/f5b0ac349
>
> Best regards
> Robert
>
Re: SWT Label with SWT.WRAP and SWT.CENTER is wrapped, but not centered (Mac OS X) [message #479851 is a reply to message #479703] Wed, 12 August 2009 17:24 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Peter Kanzler wrote:
> It should be already fixed in the newest 3.6 Build...
>
> I reported it some time ago:
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=276110

Thanks for the reference. I added a comment suggesting it be pushed into
3.5.1, due in a few weeks. Since it works correctly on other platforms
(and even in OS X Carbon), seems like something that should not have to
wait for a year.

Eric


> Robert Retzbach wrote:
>> Hi,
>>
>> I'm using Galileo Eclipse for RCP/Plug-in Developers (Build id:
>> 20090619-0625) with Cocoa Support on Mac OS X 10.5.7 (Build 9j61) and
>> tried to center wrapped text of a Label.
>> As mentioned by rcjsuen in #eclipse at freenode this works on WinXP in
>> both Ganymede and Galileo. I checked and found out that Cocoa's multi
>> line labels support centered text that wraps. So I would assume that
>> this might be SWT bug.
>> Please analyse this issue. Thanks.
>>
>> This is how it looks like:
>> http://img194.imageshack.us/img194/3346/bild18.png
>>
>> This is how it should look like (created with xcode):
>> http://img196.imageshack.us/img196/7934/bild17a.png
>>
>> Snippet to reproduce:
>> http://pastebin.com/f5b0ac349
>>
>> Best regards
>> Robert
>>
Previous Topic:Performance of setItemCount in SWT Tree
Next Topic:Spinner - Min, Max values
Goto Forum:
  


Current Time: Fri Apr 19 16:17:26 GMT 2024

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

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

Back to the top