Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Form not showing Vertical Scrool
Form not showing Vertical Scrool [message #332874] Wed, 12 November 2008 19:36 Go to next message
Eclipse UserFriend
Originally posted by: dave.dave.net

Hi

I've implemnted an Form in an editor using the EditorPart class.

in the

public void createPartControl(Composite parent) function, I have

toolkit = new FormToolkit(parent.getDisplay());
form = toolkit.createScrolledForm(parent);
form.setText("ModelML Overview");
form.getBody().setLayout(new GridLayout(2,true));

and multiple

Section section =
toolkit.createSection(form.getBody(),Section.DESCRIPTION|Sec tion.TITLE_BAR|
Section.TWISTIE|Section.EXPANDED);

This is all pretty straight forward and the UI renders correctly except
the vertical scroll. If i collapse one of the section, the vertical
scroll will then correctly show up in the editor.

Any idea where I've gone wrong ?

Thanks, Dave
Re: Form not showing Vertical Scrool [message #332905 is a reply to message #332874] Thu, 13 November 2008 14:55 Go to previous message
Eclipse UserFriend
Originally posted by: blah.blah.net

Hi

I've realized that one problem is that I didn't do parent.pack(), to
calculate the size but the size given is the preferred size not the
actual layout size. This is effecting some of the table column
calculation. Does anyone know how to get the composite to calculate the
actual size after the layout has been calculate ?

Thanks, Dave


David wrote:
> Hi
>
> I've implemnted an Form in an editor using the EditorPart class.
>
> in the
>
> public void createPartControl(Composite parent) function, I have
>
> toolkit = new FormToolkit(parent.getDisplay());
> form = toolkit.createScrolledForm(parent);
> form.setText("ModelML Overview");
> form.getBody().setLayout(new GridLayout(2,true));
>
> and multiple
>
> Section section =
> toolkit.createSection(form.getBody(),Section.DESCRIPTION|Sec tion.TITLE_BAR|
> Section.TWISTIE|Section.EXPANDED);
>
> This is all pretty straight forward and the UI renders correctly except
> the vertical scroll. If i collapse one of the section, the vertical
> scroll will then correctly show up in the editor.
>
> Any idea where I've gone wrong ?
>
> Thanks, Dave

> Hi
>
> I've implemnted an Form in an editor using the EditorPart class.
>
> in the
>
> public void createPartControl(Composite parent) function, I have
>
> toolkit = new FormToolkit(parent.getDisplay());
> form = toolkit.createScrolledForm(parent);
> form.setText("ModelML Overview");
> form.getBody().setLayout(new GridLayout(2,true));
>
> and multiple
>
> Section section =
> toolkit.createSection(form.getBody(),Section.DESCRIPTION|Sec tion.TITLE_BAR|
> Section.TWISTIE|Section.EXPANDED);
>
> This is all pretty straight forward and the UI renders correctly except
> the vertical scroll. If i collapse one of the section, the vertical
> scroll will then correctly show up in the editor.
>
> Any idea where I've gone wrong ?
>
> Thanks, Dave
Previous Topic:Context Menu from a Column Header in a TreeViewer??
Next Topic:F10 key mapping / Ubuntu (Gnome)
Goto Forum:
  


Current Time: Sun Jun 30 14:31:00 GMT 2024

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

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

Back to the top