embed a composite control in a table or list? [message #447654] |
Thu, 16 December 2004 01:15 |
Eclipse User |
|
|
|
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 #447758 is a reply to message #447717] |
Fri, 17 December 2004 18:29 |
Eclipse User |
|
|
|
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
> >
> >
>
>
|
|
|
|
Powered by
FUDForum. Page generated in 0.03229 seconds