Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mac button layout
Mac button layout [message #452289] Thu, 17 March 2005 01:32 Go to next message
Narciso Jaramillo is currently offline Narciso JaramilloFriend
Messages: 10
Registered: July 2009
Junior Member
Hi,

I'm working on a plug-in for Eclipse 3.0.1 on Windows and Mac, and I'm
having a few problems getting dialog layout to look good across both
platforms. One specific problem is that on the Mac, it seems like there's
extra space around buttons, even with SWT.FLAT set, compared to Windows.
For example, if I put a button in a FormLayout, and set its top/left to 0,
0, it actually appears a few pixels in from the corner on the Mac, whereas
it's flush with the corner on Windows.

Is there any way to get around this? Is it a bug in SWT, or is there a
reason for it?

Thanks,

nj
Re: Mac button layout [message #452300 is a reply to message #452289] Thu, 17 March 2005 08:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: markusr.itee.uq.edu.au

Hi Narciso,

I encountered the same problem and used TollBar/ToolItems as a
workaround. ToolItems seem to appear without the extra space.

Cheers, Markus

Narciso Jaramillo wrote:
> Hi,
>
> I'm working on a plug-in for Eclipse 3.0.1 on Windows and Mac, and I'm
> having a few problems getting dialog layout to look good across both
> platforms. One specific problem is that on the Mac, it seems like
> there's extra space around buttons, even with SWT.FLAT set, compared to
> Windows. For example, if I put a button in a FormLayout, and set its
> top/left to 0, 0, it actually appears a few pixels in from the corner on
> the Mac, whereas it's flush with the corner on Windows.
>
> Is there any way to get around this? Is it a bug in SWT, or is there a
> reason for it?
>
> Thanks,
>
> nj
>
>
Re: Mac button layout [message #453004 is a reply to message #452300] Tue, 29 March 2005 16:43 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Yes, the Mac draws the button a few pixels inside the bounds. Do you have a
snippet that shows the problem?

"Markus Rittenbruch" <markusr@itee.uq.edu.au> wrote in message
news:d1bf11$fgt$1@www.eclipse.org...
> Hi Narciso,
>
> I encountered the same problem and used TollBar/ToolItems as a
> workaround. ToolItems seem to appear without the extra space.
>
> Cheers, Markus
>
> Narciso Jaramillo wrote:
> > Hi,
> >
> > I'm working on a plug-in for Eclipse 3.0.1 on Windows and Mac, and I'm
> > having a few problems getting dialog layout to look good across both
> > platforms. One specific problem is that on the Mac, it seems like
> > there's extra space around buttons, even with SWT.FLAT set, compared to
> > Windows. For example, if I put a button in a FormLayout, and set its
> > top/left to 0, 0, it actually appears a few pixels in from the corner on
> > the Mac, whereas it's flush with the corner on Windows.
> >
> > Is there any way to get around this? Is it a bug in SWT, or is there a
> > reason for it?
> >
> > Thanks,
> >
> > nj
> >
> >
Re: Mac button layout [message #453014 is a reply to message #453004] Tue, 29 March 2005 23:04 Go to previous message
Eclipse UserFriend
Originally posted by: bob.objfac.com

Steve Northover wrote:
> Yes, the Mac draws the button a few pixels inside the bounds. Do you have a
> snippet that shows the problem?

Try Snippet111 on the Mac.

Bob
Previous Topic:using AbstractTextEditor in an SWT Application
Next Topic:Howto: Edit the text of a tree item (in place, fancy)
Goto Forum:
  


Current Time: Tue Apr 23 12:14:04 GMT 2024

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

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

Back to the top