Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » SWT.ICON_SEARCH and SWT.ICON_CANCEL NOT WORK
SWT.ICON_SEARCH and SWT.ICON_CANCEL NOT WORK [message #985766] Fri, 16 November 2012 02:23 Go to next message
ocean xue is currently offline ocean xue
Messages: 107
Registered: November 2011
Senior Member
SWT.ICON_SEARCH and SWT.ICON_CANCEL NOT WORK

Text txtPointName = new Text(container, SWT.BORDER|SWT.ICON_SEARCH|SWT.ICON_CANCEL);


Text-Search-Icon {
background-image: url( css/widget/rap/text/find.png );
spacing: 3px;
}

Text-Cancel-Icon {
background-image: url( css/widget/rap/text/clear.gif );
spacing: 3px;
}
Re: SWT.ICON_SEARCH and SWT.ICON_CANCEL NOT WORK [message #985773 is a reply to message #985766] Fri, 16 November 2012 06:19 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1815
Registered: July 2009
Senior Member
Hi,
what do you mean by not working? The style flags SWT.ICON_SEARCH,
SWT.ICON_CANCEL are valid ONLY together with SWT.SEARCH style flag.
HTH,
Ivan

On 11/16/2012 4:23 AM, ocean xue wrote:
> SWT.ICON_SEARCH and SWT.ICON_CANCEL NOT WORK
>
> Text txtPointName = new Text(container,
> SWT.BORDER|SWT.ICON_SEARCH|SWT.ICON_CANCEL);
>
>
> Text-Search-Icon {
> background-image: url( css/widget/rap/text/find.png );
> spacing: 3px;
> }
>
> Text-Cancel-Icon {
> background-image: url( css/widget/rap/text/clear.gif );
> spacing: 3px;
> }
>

--
Ivan Furnadjiev

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: SWT.ICON_SEARCH and SWT.ICON_CANCEL NOT WORK [message #985790 is a reply to message #985773] Fri, 16 November 2012 08:10 Go to previous message
ocean xue is currently offline ocean xue
Messages: 107
Registered: November 2011
Senior Member
thank you

no together with SWT.SEARCH
Previous Topic:about org.eclipse.ui.themes
Next Topic:CTabFolder strange border
Goto Forum:
  


Current Time: Tue Sep 16 21:29:51 GMT 2014

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

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