Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Mac button layout
Mac button layout [message #452289] Wed, 16 March 2005 20:32 Go to next message
Eclipse UserFriend
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 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 11:43 Go to previous messageGo to next message
Eclipse UserFriend
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 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: Fri Jul 25 01:31:50 EDT 2025

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

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

Back to the top