Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Grid spacing too large on Motif
Grid spacing too large on Motif [message #449293] Thu, 20 January 2005 17:02 Go to next message
Brian Kozitza is currently offline Brian KozitzaFriend
Messages: 20
Registered: July 2009
Junior Member
I cannot seem to get my gui to look right on aix with motif (linux and
window does not have the problem). I am using the gridlayout to layout
several rows that contain Buttons and Text widgets. However the vertical
spacing between the grid locations is too wide. I have set the
GridLayout.veriticalSpacing to 0 and I have set the
GridLayout.marginHeight to 0. I see the affects of this on linux and
windows, but not on AIX with motif.

I have also tried to play with the .Xdefaults to decrease sizes with the
following:

*spacing :0
*XmTextField.marginHeight: 0
*XmPushButton.marginHeight: 0
*XmToggleButton.marginHeight: 0

Although these changes seem to help some none of them remove the extra
vertical space between rows. One panel has several rows and there is
just too much wasted space.

By the way, I am using eclipse 3.0.1

Brian Kozitza
Re: Grid spacing too large on Motif [message #449299 is a reply to message #449293] Thu, 20 January 2005 18:53 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
From the description it sounds like Motif behavior. When you create buttons
in a dialog shell (a shell who's parent is a shell rather than the display),
then Motif leaves extra space for the default button emphasis. You should
be able to get rid of it using .Xdefaults. You'll need to post a complete
snippet for me to be sure.

<kozitza@us.ibm.com> wrote in message news:csoo6i$s34$1@www.eclipse.org...
> I cannot seem to get my gui to look right on aix with motif (linux and
> window does not have the problem). I am using the gridlayout to layout
> several rows that contain Buttons and Text widgets. However the vertical
> spacing between the grid locations is too wide. I have set the
> GridLayout.veriticalSpacing to 0 and I have set the
> GridLayout.marginHeight to 0. I see the affects of this on linux and
> windows, but not on AIX with motif.
>
> I have also tried to play with the .Xdefaults to decrease sizes with the
> following:
>
> *spacing :0
> *XmTextField.marginHeight: 0
> *XmPushButton.marginHeight: 0
> *XmToggleButton.marginHeight: 0
>
> Although these changes seem to help some none of them remove the extra
> vertical space between rows. One panel has several rows and there is
> just too much wasted space.
>
> By the way, I am using eclipse 3.0.1
>
> Brian Kozitza
>
>
Re: Grid spacing too large on Motif [message #449302 is a reply to message #449299] Thu, 20 January 2005 19:25 Go to previous messageGo to next message
Brian Kozitza is currently offline Brian KozitzaFriend
Messages: 20
Registered: July 2009
Junior Member
What resource settings do I put in my Xdefaults to affect this?
Re: Grid spacing too large on Motif [message #449321 is a reply to message #449302] Fri, 21 January 2005 17:00 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
How about setting XmNdefaultButtonShadowThickness to 0? If not google on
XmNshowAsDefault and decode the man pages. Hope this works for you.

<kozitza@us.ibm.com> wrote in message news:csp0j8$agc$1@www.eclipse.org...
> What resource settings do I put in my Xdefaults to affect this?
>
Re: Grid spacing too large on Motif [message #449456 is a reply to message #449321] Mon, 24 January 2005 19:46 Go to previous messageGo to next message
Brian Kozitza is currently offline Brian KozitzaFriend
Messages: 20
Registered: July 2009
Junior Member
Well I wasn't able to find a resource to add to my Xdefaults that gave me
what I wanted. However I did find something that works. I found that
the widget taking the vertical space was the checkbox. Even when I set
the verticalSpacing and marginHeight to 0, the checkbox still was too
tall. I ended up giving the checkbox a heightHint and then I could
reduce its size. This is not real great because now I have an OS
specific hack in my code, but at least it looks good now.

Thanks for your input.
Re: Grid spacing too large on Motif [message #449503 is a reply to message #449456] Tue, 25 January 2005 15:05 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Can you post the code that shows the difference? Could be a bug in SWT
rather than unwanted platform behavior.

<kozitza@us.ibm.com> wrote in message news:ct3ja3$144$1@www.eclipse.org...
> Well I wasn't able to find a resource to add to my Xdefaults that gave me
> what I wanted. However I did find something that works. I found that
> the widget taking the vertical space was the checkbox. Even when I set
> the verticalSpacing and marginHeight to 0, the checkbox still was too
> tall. I ended up giving the checkbox a heightHint and then I could
> reduce its size. This is not real great because now I have an OS
> specific hack in my code, but at least it looks good now.
>
> Thanks for your input.
>
Previous Topic:File creation
Next Topic:Adding / Removing TableColumns on-the-fly
Goto Forum:
  


Current Time: Wed Nov 13 03:13:06 GMT 2019

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

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

Back to the top