Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » embed a composite control in a table or list?
embed a composite control in a table or list? [message #447654] Thu, 16 December 2004 01:15 Go to next message
Eclipse UserFriend
Originally posted by: gopowereclipse.yahoo.com

I'm new to SWT. I'm trying to create a list of composite controls (see the
layout scatch below). Each composite control contains an image on the left
and one title text and one description text on the right. The size of the
composite control varies depending the length .
----------------------------------------
| | TITLE |
| Image | description xxxxxxxxxxxxx |
| | xxxxxxxxxxxxxxxxxxxxxxxx |
| | xxxxxxxxxxx
----------------------------------------
| | TITLE |
| Image | description xxxxxxxxxxxxx |
----------------------------------------
| | TITLE |
| Image | description xxxxxxxxxxxxx |
| | xxxxxxxxxxxxxxxx |
----------------------------------------

I try to use a 1-column Table control and then add the composite controls
into the table cells using TableEditor. But it seems that the height of the
table cell is fixed. I cannot see the full composite control (most portion
is chopped). Can someone tell me what widgets to use for the layout? Your
help is highly appreciated.

--Vivian
Re: embed a composite control in a table or list? [message #447717 is a reply to message #447654] Thu, 16 December 2004 15:42 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Right now, tables can't have variable sized rows. Also, the height of each
row is dictated by the font or the height of the first image that is
inserted into the table (thanks Microsoft).

"Vivian" <gopowereclipse@yahoo.com> wrote in message
news:cpqnj0$sg6$1@www.eclipse.org...
> I'm new to SWT. I'm trying to create a list of composite controls (see the
> layout scatch below). Each composite control contains an image on the left
> and one title text and one description text on the right. The size of the
> composite control varies depending the length .
> ----------------------------------------
> | | TITLE |
> | Image | description xxxxxxxxxxxxx |
> | | xxxxxxxxxxxxxxxxxxxxxxxx |
> | | xxxxxxxxxxx
> ----------------------------------------
> | | TITLE |
> | Image | description xxxxxxxxxxxxx |
> ----------------------------------------
> | | TITLE |
> | Image | description xxxxxxxxxxxxx |
> | | xxxxxxxxxxxxxxxx |
> ----------------------------------------
>
> I try to use a 1-column Table control and then add the composite controls
> into the table cells using TableEditor. But it seems that the height of
the
> table cell is fixed. I cannot see the full composite control (most portion
> is chopped). Can someone tell me what widgets to use for the layout? Your
> help is highly appreciated.
>
> --Vivian
>
>
Re: embed a composite control in a table or list? [message #447758 is a reply to message #447717] Fri, 17 December 2004 18:29 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: gopowereclipse.yahoo.com

Is there an existing widget that I can use for hosting my composite control
(see scatch below)? I'm wondering if I can re-use some widget without
writing my own.

----------------------------------------
| | TITLE (variable length) |
| Image | description xxxxxxxxxxxxx |
| | xxxxxxxxxxxxxxxxxxxxxxxx |
| | xxxxxxxxxxx (vairable length)|
----------------------------------------

--Vivian

"Steve Northover" <steve_northover@ca.ibm.com> wrote in message
news:cpsade$vjc$1@www.eclipse.org...
> Right now, tables can't have variable sized rows. Also, the height of
each
> row is dictated by the font or the height of the first image that is
> inserted into the table (thanks Microsoft).
>
> "Vivian" <gopowereclipse@yahoo.com> wrote in message
> news:cpqnj0$sg6$1@www.eclipse.org...
> > I'm new to SWT. I'm trying to create a list of composite controls (see
the
> > layout scatch below). Each composite control contains an image on the
left
> > and one title text and one description text on the right. The size of
the
> > composite control varies depending the length .
> > ----------------------------------------
> > | | TITLE |
> > | Image | description xxxxxxxxxxxxx |
> > | | xxxxxxxxxxxxxxxxxxxxxxxx |
> > | | xxxxxxxxxxx
> > ----------------------------------------
> > | | TITLE |
> > | Image | description xxxxxxxxxxxxx |
> > ----------------------------------------
> > | | TITLE |
> > | Image | description xxxxxxxxxxxxx |
> > | | xxxxxxxxxxxxxxxx |
> > ----------------------------------------
> >
> > I try to use a 1-column Table control and then add the composite
controls
> > into the table cells using TableEditor. But it seems that the height of
> the
> > table cell is fixed. I cannot see the full composite control (most
portion
> > is chopped). Can someone tell me what widgets to use for the layout?
Your
> > help is highly appreciated.
> >
> > --Vivian
> >
> >
>
>
Re: embed a composite control in a table or list? [message #447895 is a reply to message #447758] Tue, 21 December 2004 15:57 Go to previous message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Not at the moment.

"Vivian" <gopowereclipse@yahoo.com> wrote in message
news:cpv8hl$fco$1@www.eclipse.org...
> Is there an existing widget that I can use for hosting my composite
control
> (see scatch below)? I'm wondering if I can re-use some widget without
> writing my own.
>
> ----------------------------------------
> | | TITLE (variable length) |
> | Image | description xxxxxxxxxxxxx |
> | | xxxxxxxxxxxxxxxxxxxxxxxx |
> | | xxxxxxxxxxx (vairable length)|
> ----------------------------------------
>
> --Vivian
>
> "Steve Northover" <steve_northover@ca.ibm.com> wrote in message
> news:cpsade$vjc$1@www.eclipse.org...
> > Right now, tables can't have variable sized rows. Also, the height of
> each
> > row is dictated by the font or the height of the first image that is
> > inserted into the table (thanks Microsoft).
> >
> > "Vivian" <gopowereclipse@yahoo.com> wrote in message
> > news:cpqnj0$sg6$1@www.eclipse.org...
> > > I'm new to SWT. I'm trying to create a list of composite controls (see
> the
> > > layout scatch below). Each composite control contains an image on the
> left
> > > and one title text and one description text on the right. The size of
> the
> > > composite control varies depending the length .
> > > ----------------------------------------
> > > | | TITLE |
> > > | Image | description xxxxxxxxxxxxx |
> > > | | xxxxxxxxxxxxxxxxxxxxxxxx |
> > > | | xxxxxxxxxxx
> > > ----------------------------------------
> > > | | TITLE |
> > > | Image | description xxxxxxxxxxxxx |
> > > ----------------------------------------
> > > | | TITLE |
> > > | Image | description xxxxxxxxxxxxx |
> > > | | xxxxxxxxxxxxxxxx |
> > > ----------------------------------------
> > >
> > > I try to use a 1-column Table control and then add the composite
> controls
> > > into the table cells using TableEditor. But it seems that the height
of
> > the
> > > table cell is fixed. I cannot see the full composite control (most
> portion
> > > is chopped). Can someone tell me what widgets to use for the layout?
> Your
> > > help is highly appreciated.
> > >
> > > --Vivian
> > >
> > >
> >
> >
>
>
Previous Topic:CTRL+C, CTRL+V, CTRL+X in JFace dialogs
Next Topic:AWT_SWT Adding Hidden Components
Goto Forum:
  


Current Time: Thu Oct 29 16:36:11 GMT 2020

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

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

Back to the top