Form not showing Vertical Scrool [message #332874] |
Wed, 12 November 2008 19:36  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.25194 seconds