XWT. Form and setHeadClient(). [message #575065] |
Thu, 22 April 2010 10:33 |
Konstantin Scheglov Messages: 555 Registered: July 2009 |
Senior Member |
|
|
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.
Konstantin Scheglov,
Google, Inc.
|
|
|
|
Powered by
FUDForum. Page generated in 0.01770 seconds