Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mac button layout
Mac button layout [message #452289] |
Thu, 17 March 2005 01:32 |
Narciso Jaramillo 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 |
Eclipse User |
|
|
|
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 |
Steve Northover 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 |
Eclipse User |
|
|
|
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
|
|
|
Goto Forum:
Current Time: Tue Apr 23 12:14:04 GMT 2024
Powered by FUDForum. Page generated in 0.03128 seconds
|