Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Technology Project and PMC » ScrolledComposite Problems
ScrolledComposite Problems [message #11915] Wed, 24 July 2002 15:46 Go to next message
Balaji  is currently offline Balaji Friend
Messages: 101
Registered: July 2009
Senior Member
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 #12890 is a reply to message #11915] Wed, 24 July 2002 19:42 Go to previous messageGo to next message
Mark C. Chu-Carroll is currently offline Mark C. Chu-CarrollFriend
Messages: 64
Registered: July 2009
Member
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 #23320 is a reply to message #11915] Thu, 12 September 2002 09:39 Go to previous message
Mark C. Chu-Carroll is currently offline Mark C. Chu-CarrollFriend
Messages: 64
Registered: July 2009
Member
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 19:42 Go to previous message
Mark C. Chu-Carroll is currently offline Mark C. Chu-CarrollFriend
Messages: 64
Registered: July 2009
Member
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 09:39 Go to previous message
Mark C. Chu-Carroll is currently offline Mark C. Chu-CarrollFriend
Messages: 64
Registered: July 2009
Member
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
Previous Topic:SWT binding for Mozilla
Next Topic:merging of properties in IPropertyDescriptor
Goto Forum:
  


Current Time: Fri Apr 26 04:24:24 GMT 2024

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

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

Back to the top