Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Flat Look Widgets
Flat Look Widgets [message #52705] Wed, 17 October 2007 23:24 Go to next message
Eclipse UserFriend
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 04:23 Go to previous message
Eclipse UserFriend
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
>
Previous Topic:NUllPointerException after updating to 1.0
Next Topic:FormToolkit classdef problems
Goto Forum:
  


Current Time: Tue Apr 29 04:09:47 EDT 2025

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

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

Back to the top