Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to indent Button controls?
How to indent Button controls? [message #141766] Thu, 09 October 2003 14:05 Go to next message
Eclipse UserFriend
Originally posted by: mharp.seapine.com

Hey all,

I have several check-box buttons. One button is kind of like the parent, in
that if it's not checked, then the other buttons are disabled. To show this
relationship I'd like to indent the other button underneath the "parent"
button. I guess I could do this with a Tree, but isn't there some kind of
way to do it with GridData or some kid of layout? I've tried setting the
horizontalIndent member of GridData but that doesn't seem to change the
appearance of the buttons at all. I've also thought about using several
columns in my GridLayout, but that would seem to lead to the indentation
being different sizes depending on the size of my dialog, since I can't see
any way to tell the GridLayout how wide to make a column (what I've found is
that the columns are divided equally across the dialog).

Any help would be greatly appreciated.

Thanks,

harpstein
Re: How to indent Button controls? [message #141875 is a reply to message #141766] Thu, 09 October 2003 16:25 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: richkulp.NO--SPAM.us.ibm.com

Are you also using any Horizontal_Align_* state too? Those would
probably override the indent. That would include any Fill state too.

Rich
Re: How to indent Button controls? [message #142148 is a reply to message #141766] Fri, 10 October 2003 09:00 Go to previous message
Eclipse UserFriend
Originally posted by: scheglov_ke.nlmk.ru

Harpstein <mharp@seapine.com> wrote:

You can also try to play with free version of
Advanced Eclipse SWT Designer (http://www.swt-designer.com), it has good
support for GridLayout.

> I have several check-box buttons. One button is kind of like the parent, in
> that if it's not checked, then the other buttons are disabled. To show this
> relationship I'd like to indent the other button underneath the "parent"
> button. I guess I could do this with a Tree, but isn't there some kind of
> way to do it with GridData or some kid of layout? I've tried setting the
> horizontalIndent member of GridData but that doesn't seem to change the
> appearance of the buttons at all. I've also thought about using several
> columns in my GridLayout, but that would seem to lead to the indentation
> being different sizes depending on the size of my dialog, since I can't see
> any way to tell the GridLayout how wide to make a column (what I've found is
> that the columns are divided equally across the dialog).

> Any help would be greatly appreciated.

> Thanks,

> harpstein



--
SY, Konstantin.
Advanced Eclipse SWT Designer (http://www.swt-designer.com)
Previous Topic:How to contribute proerties to the standatrd properties view?
Next Topic:M3: PDE: NoClassDefFoundError: org/eclipse/swt/widgets/Dialog
Goto Forum:
  


Current Time: Wed Jan 15 14:38:07 GMT 2025

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

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

Back to the top