Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Flat Look Widgets
Flat Look Widgets [message #52705] Thu, 18 October 2007 03:24 Go to next message
Setya Nugdjaja is currently offline Setya NugdjajaFriend
Messages: 567
Registered: July 2009
Senior Member
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 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: Sat Dec 21 16:59:18 GMT 2024

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

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

Back to the top