ScrolledComposite Problems [message #11915] |
Wed, 24 July 2002 11:46  |
Eclipse User |
|
|
|
I am trying to use the scrolled composite class but I am facing problems
with it.
What I need is something like this:
I have a composite that holds many controls. Since there are so many
controls inside the composite, it goes out of the viewing area. So I am
trying to use a scrolledcomposite class so that I get a scroll bar when
the composite's size exceeds the viewing area.
I am using the example code provided with eclipse doc. :
This is the piece of code I wrote:
createDialogArea(Composite parent)
{
ScrolledComposite sc2 = new ScrolledComposite(parent, SWT_HSCROLL |
SWT_VSCROLL |
SWT_BORDER );
Composite c1 = new Composite(sc2);
sc2.setContent(c1);
super.createDialogArea(C1); // This creates all the controls for me
c1.setSize(c1.computeSize(SWT_DEFAULT, SWT_DEFAULT);
}
It does not provide me the scroll bar...........
Any help would be appreciated.
|
|
|
|
Re: ScrolledComposite Problems [message #23320 is a reply to message #11915] |
Thu, 12 September 2002 05:39  |
Eclipse User |
|
|
|
Your odds of getting a solution to this on the eclipse.technology
newsgroup are pretty slim, since this newsgroup is intended for
discussions of the work hosted by the Eclipse Technologies project.
eclipse.tools is the place for questions about programming Eclipse.
-Mark
On Wed, 24 Jul 2002 11:46:02 -0400, Balaji wrote:
> I am trying to use the scrolled composite class but I am facing problems
> with it.
>
> What I need is something like this:
> I have a composite that holds many controls. Since there are so many
> controls inside the composite, it goes out of the viewing area. So I am
> trying to use a scrolledcomposite class so that I get a scroll bar when
> the composite's size exceeds the viewing area.
>
> I am using the example code provided with eclipse doc. :
>
> This is the piece of code I wrote:
>
> createDialogArea(Composite parent)
> {
> ScrolledComposite sc2 = new ScrolledComposite(parent, SWT_HSCROLL |
> SWT_VSCROLL |
> SWT_BORDER );
> Composite c1 = new Composite(sc2);
> sc2.setContent(c1);
> super.createDialogArea(C1); // This creates all the controls for me
> c1.setSize(c1.computeSize(SWT_DEFAULT, SWT_DEFAULT);
> }
> }
> It does not provide me the scroll bar...........
>
> Any help would be appreciated.
--
Mark Craig Chu-Carroll, IBM T.J. Watson Research Center
*** The Stellation project: Advanced SCM for Collaboration
*** http://www.eclipse.org/stellation
*** Work Email: mcc@watson.ibm.com ------- Personal Email: markcc@bestweb.net
|
|
|
Re: ScrolledComposite Problems [message #570090 is a reply to message #11915] |
Wed, 24 July 2002 15:42  |
Eclipse User |
|
|
|
Your odds of getting a solution to this on the eclipse.technology
newsgroup are pretty slim, since this newsgroup is intended for
discussions of the work hosted by the Eclipse Technologies project.
eclipse.tools is the place for questions about programming Eclipse.
-Mark
On Wed, 24 Jul 2002 11:46:02 -0400, Balaji wrote:
> I am trying to use the scrolled composite class but I am facing problems
> with it.
>
> What I need is something like this:
> I have a composite that holds many controls. Since there are so many
> controls inside the composite, it goes out of the viewing area. So I am
> trying to use a scrolledcomposite class so that I get a scroll bar when
> the composite's size exceeds the viewing area.
>
> I am using the example code provided with eclipse doc. :
>
> This is the piece of code I wrote:
>
> createDialogArea(Composite parent)
> {
> ScrolledComposite sc2 = new ScrolledComposite(parent, SWT_HSCROLL |
> SWT_VSCROLL |
> SWT_BORDER );
> Composite c1 = new Composite(sc2);
> sc2.setContent(c1);
> super.createDialogArea(C1); // This creates all the controls for me
> c1.setSize(c1.computeSize(SWT_DEFAULT, SWT_DEFAULT);
> }
> }
> It does not provide me the scroll bar...........
>
> Any help would be appreciated.
--
Mark Craig Chu-Carroll, IBM T.J. Watson Research Center
*** The Stellation project: Advanced SCM for Collaboration
*** http://www.eclipse.org/stellation
*** Work Email: mcc@watson.ibm.com ------- Personal Email: markcc@bestweb.net
|
|
|
Re: ScrolledComposite Problems [message #581613 is a reply to message #11915] |
Thu, 12 September 2002 05:39  |
Eclipse User |
|
|
|
Your odds of getting a solution to this on the eclipse.technology
newsgroup are pretty slim, since this newsgroup is intended for
discussions of the work hosted by the Eclipse Technologies project.
eclipse.tools is the place for questions about programming Eclipse.
-Mark
On Wed, 24 Jul 2002 11:46:02 -0400, Balaji wrote:
> I am trying to use the scrolled composite class but I am facing problems
> with it.
>
> What I need is something like this:
> I have a composite that holds many controls. Since there are so many
> controls inside the composite, it goes out of the viewing area. So I am
> trying to use a scrolledcomposite class so that I get a scroll bar when
> the composite's size exceeds the viewing area.
>
> I am using the example code provided with eclipse doc. :
>
> This is the piece of code I wrote:
>
> createDialogArea(Composite parent)
> {
> ScrolledComposite sc2 = new ScrolledComposite(parent, SWT_HSCROLL |
> SWT_VSCROLL |
> SWT_BORDER );
> Composite c1 = new Composite(sc2);
> sc2.setContent(c1);
> super.createDialogArea(C1); // This creates all the controls for me
> c1.setSize(c1.computeSize(SWT_DEFAULT, SWT_DEFAULT);
> }
> }
> It does not provide me the scroll bar...........
>
> Any help would be appreciated.
--
Mark Craig Chu-Carroll, IBM T.J. Watson Research Center
*** The Stellation project: Advanced SCM for Collaboration
*** http://www.eclipse.org/stellation
*** Work Email: mcc@watson.ibm.com ------- Personal Email: markcc@bestweb.net
|
|
|
Powered by
FUDForum. Page generated in 0.03625 seconds