Home » Eclipse Projects » Remote Application Platform (RAP) » How to change icon and overwrite builtin event code of SWT.ICON_CANCEL in a Text control?(in order to achieve a specific function by replacing SWT.ICON_CANCEL in a Text control)
|How to change icon and overwrite builtin event code of SWT.ICON_CANCEL in a Text control? [message #1772844]
||Sun, 17 September 2017 06:56
| David Lee
Registered: May 2013
By using style SWT.SEARCH + SWT.ICON_SEARCH, we can see an "eraser" icon on the right of a Text control, and clear all content of the Text by clicking the icon.
If I want to change its behavior, my questions are:
1.How to change "eraser" icon to be another one(eg. SWT.ICON_INFORMATION or a self design icon)?
2.How to show a message box instead of clearing content of the Text control after click? (without clearing the content of the Text)
[Updated on: Sun, 17 September 2017 08:13]
Report message to a moderator
Current Time: Tue Oct 19 13:30:30 GMT 2021
Powered by FUDForum
. Page generated in 0.02062 seconds