I think this is a new bug, but not quite sure how to describe it.
I have a Text widget that get's created like so:
Text my_text = new Text(parent, SWT.BORDER | SWT.SEARCH | SWT.ICON_CANCEL );
my_text.setText("Some Text");
On OS X 10.10 Yosemite some new behavior seems to exhibit, and not sure if there's a workaround or solution yet.
Essentially what happens is when the widget is out of focus the text value "Some Text" is hidden and doesn't display. As soon as I give the control focus by clicking into it, the text "Some Text" appears.
I've determined that if I remove the SWT.SEARCH and SWT.ICON_CANCEL option, the issue goes away, but then now I'm left to have to add a separate control to clear the field value.
Anyone happen to have a solution or workaround?
[UPDATE] Appears there is a bug filed here: https://bugs.eclipse.org/bugs/show_bug.cgi?id=447981
I've tried changing the text alignment and that "works" but not ideal. I really need a left aligned search box.
Thanks,
JK
[Updated on: Tue, 27 January 2015 13:31] by Moderator