Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » XWT. Form and setHeadClient().
XWT. Form and setHeadClient(). [message #575065] Thu, 22 April 2010 10:33 Go to next message
Konstantin Scheglov is currently offline Konstantin ScheglovFriend
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.
Re: XWT. Form and setHeadClient(). [message #575092 is a reply to message #575065] Thu, 22 April 2010 23:29 Go to previous message
Yves YANG is currently offline Yves YANGFriend
Messages: 688
Registered: July 2009
Senior Member
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.
Previous Topic:XWT runnable jar - does not find main.xwt in jar file
Next Topic:e4 + RAP 1.3 + Documentation
Goto Forum:
  


Current Time: Thu Apr 18 23:50:14 GMT 2024

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

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

Back to the top