Flat Look Widgets [message #52705] |
Thu, 18 October 2007 03:24 |
|
Hi,
Firstly I would like to congrat RAP team for 1.0 release.
Now I would like to have flat look widgets in my RAP application, can I
simply use the Form API or do I have to modify the theme to achieve this ?
Best Regards,
Setya
|
|
|
Re: Flat Look Widgets [message #53145 is a reply to message #52705] |
Thu, 18 October 2007 08:23 |
Eclipse User |
|
|
|
Originally posted by: fappel.innoopract.com
Hi,
you can use the Form API, but you don't have to. Forms simple use SWT.FLAT
as style flag on control creation time. Look at the code for the button
creation via the FormToolkit class:
public Button createButton(Composite parent, String text, int style) {
Button button = new Button(parent, style | SWT.FLAT | orientation);
if (text != null)
button.setText(text);
adapt(button, true, true);
return button;
}
So there is nothing magic about this.
Ciao
Frank
"Setya" <jsetya@gmail.com> schrieb im Newsbeitrag
news:08f64586a625a2cc8f34b34692423a27$1@www.eclipse.org...
> Hi,
>
> Firstly I would like to congrat RAP team for 1.0 release.
>
> Now I would like to have flat look widgets in my RAP application, can I
> simply use the Form API or do I have to modify the theme to achieve this ?
>
> Best Regards,
>
> Setya
>
|
|
|
Powered by
FUDForum. Page generated in 0.02660 seconds