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] Thu, 15 November 2012 21:23 Go to next message
ocean xue is currently offline ocean xue
Messages: 105
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 01:19 Go to previous messageGo to next message
Ivan Furnadjiev is currently offline Ivan Furnadjiev
Messages: 1794
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 03:10 Go to previous message
ocean xue is currently offline ocean xue
Messages: 105
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: Fri Aug 29 04:14:38 EDT 2014

Powered by FUDForum. Page generated in 0.02667 seconds