Mac button layout [message #452289] |
Wed, 16 March 2005 20:32  |
Eclipse User |
|
|
|
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 03: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 11:43   |
Eclipse User |
|
|
|
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 18: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
|
|
|
Powered by
FUDForum. Page generated in 0.04384 seconds