Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsHow do you use FormLayout on a Composite with a Vertical Scrollbar?
https://www.eclipse.org/forums/index.php/mv/msg/142652/449208/#msg_449208
Originally posted by: betan.us.ibm.com
This is a multipart message in MIME format.
--=_alternative 0052386185256F8E_=
Content-Type: text/plain; charset="US-ASCII"
Is there a way to add items past the initial visible screen using
FormLayout? More specifically, I have a Composite with a verticle scroll
bar which I'm adding controls to using FormData with the "top" attribute
set to a FormAttachment to the previously displayed Control. However, the
scrollbar is only scrolling to the last item that fits on the size of the
screen initially displayed, and no other items seem to be put on the
composite. I tried setting the bounds of the Composite to something
larger than its size, but that still didn't work. Any suggestions?
--=_alternative 0052386185256F8E_=
Content-Type: text/html; charset="US-ASCII"
<br><font size=2 face="sans-serif">Is there a way to add items past the
initial visible screen using FormLayout? More specifically, I have
a Composite with a verticle scroll bar which I'm adding controls to using
FormData with the "top" attribute set to a FormAttachment to
the previously displayed Control. However, the scrollbar is
only scrolling to the last item that fits on the size of the screen initially
displayed, and no other items seem to be put on the composite. I
tried setting the bounds of the Composite to something larger than its
size, but that still didn't work. Any suggestions?</font>
--=_alternative 0052386185256F8E_=--]]>2005-01-19T14:58:06-00:00Re: How do you use FormLayout on a Composite with a Vertical Scrollbar?
https://www.eclipse.org/forums/index.php/mv/msg/142652/449217/#msg_449217
------=_NextPart_000_00B5_01C4FE1B.C312FC70
Content-Type: text/plain;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
The scrollbars in a Composite need to be managed by the application. =
FormLayout (or any other SWT layout) does not manage scrollbars. See =
org.eclipse.swt.custom.ScrolledComposite.
Is there a way to add items past the initial visible screen using =
FormLayout? More specifically, I have a Composite with a verticle =
scroll bar which I'm adding controls to using FormData with the "top" =
attribute set to a FormAttachment to the previously displayed Control. =
However, the scrollbar is only scrolling to the last item that fits on =
the size of the screen initially displayed, and no other items seem to =
be put on the composite. I tried setting the bounds of the Composite to =
something larger than its size, but that still didn't work. Any =
suggestions?
------=_NextPart_000_00B5_01C4FE1B.C312FC70
Content-Type: text/html;
charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; =
charset=3Diso-8859-1">
<META content=3D"MSHTML 6.00.2900.2523" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT size=3D2>The scrollbars in a Composite need to be managed by =
the=20
application. FormLayout (or any other SWT layout) does not manage=20
scrollbars. See =
org.eclipse.swt.custom.ScrolledComposite.</FONT></DIV>
<DIV><FONT size=3D2></FONT> </DIV>
<DIV><FONT size=3D2>See also this SWT snippet:</FONT></DIV>
<DIV> </DIV>
<DIV><FONT size=3D2><A=20
href=3D" http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.sni ppets=
/src/org/eclipse/swt/snippets/Snippet5.java?rev=3DHEAD&a mp;content-type=3D=
text/vnd.viewcvs-markup">http://dev.eclipse.org/viewcvs/index.cgi/org.ecl=
ipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet5.java ?rev=3DHEAD&a=
mp;content-type=3Dtext/vnd.viewcvs-markup</A></FONT></DIV >
<BLOCKQUOTE=20
style=3D"PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; =
BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV><<A href=3D"mailto:betan@us.ibm.com">betan@us.ibm.com</A>> =
wrote in=20
message <A=20
=
href=3D"news:cslsht$lh0$1@www.eclipse.org">news:cslsht$lh0$1@www.eclipse.=
org</A>...</DIV><BR><FONT=20
face=3Dsans-serif size=3D2>Is there a way to add items past the =
initial visible=20
screen using FormLayout? More specifically, I have a Composite =
with a=20
verticle scroll bar which I'm adding controls to using FormData with =
the "top"=20
attribute set to a FormAttachment to the previously displayed Control. =
However, the scrollbar is only scrolling to the last item =
that=20
fits on the size of the screen initially displayed, and no other items =
seem to=20
be put on the composite. I tried setting the bounds of the =
Composite to=20
something larger than its size, but that still didn't work. Any=20
suggestions?</FONT></BLOCKQUOTE></BODY></HTML>