XWT. Form and setHeadClient(). [message #575065] |
Thu, 22 April 2010 06:33  |
Eclipse User |
|
|
|
I can not implement same UI using XWT.
Form form = formToolkit.createForm(m_shell);
formToolkit.paintBordersFor(form);
form.setText("New Form");
{
Button button = formToolkit.createButton(form.getHead(), "New Button", SWT.NONE);
form.setHeadClient(button);
}
When I try to use "headClient"
<!-- Forms API -->
<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt">
<Shell.layout>
<FillLayout/>
</Shell.layout>
<Form text="New Form">
<Form.headClient>
<Button/>
</Form.headClient>
</Form>
</Shell>
..it complains that Button was created not on "head".
When I use "head" it does not throw exception, but does not show my Button.
<!-- Forms API -->
<Shell xmlns="http://www.eclipse.org/xwt/presentation" xmlns:x="http://www.eclipse.org/xwt">
<Shell.layout>
<FillLayout/>
</Shell.layout>
<Form text="New Form">
<Form.head>
<Button/>
</Form.head>
</Form>
</Shell>
--
Konstantin Scheglov,
Instantiations, Inc.
|
|
|
Re: XWT. Form and setHeadClient(). [message #575092 is a reply to message #575065] |
Thu, 22 April 2010 19:29  |
Eclipse User |
|
|
|
I suppose you have found the bug. The call form.setHeadClient(button) is
missing. Please fill a bug.
Thanks
yves YANG
"Konstantin Scheglov" <Konstantin.Scheglov@gmail.com> wrote in message
news:hqp8mh$1qh$1@build.eclipse.org...
>I can not implement same UI using XWT.
> Form form = formToolkit.createForm(m_shell);
> formToolkit.paintBordersFor(form);
> form.setText("New Form");
> {
> Button button = formToolkit.createButton(form.getHead(), "New Button",
> SWT.NONE);
> form.setHeadClient(button);
> }
>
>
>
> When I try to use "headClient"
> <!-- Forms API -->
> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
> xmlns:x="http://www.eclipse.org/xwt">
> <Shell.layout>
> <FillLayout/>
> </Shell.layout>
> <Form text="New Form">
> <Form.headClient>
> <Button/>
> </Form.headClient>
> </Form>
> </Shell>
>
> ..it complains that Button was created not on "head".
>
> When I use "head" it does not throw exception, but does not show my
> Button.
> <!-- Forms API -->
> <Shell xmlns="http://www.eclipse.org/xwt/presentation"
> xmlns:x="http://www.eclipse.org/xwt">
> <Shell.layout>
> <FillLayout/>
> </Shell.layout>
> <Form text="New Form">
> <Form.head>
> <Button/>
> </Form.head>
> </Form>
> </Shell>
>
> --
> Konstantin Scheglov,
> Instantiations, Inc.
|
|
|
Powered by
FUDForum. Page generated in 0.03590 seconds