Hi Andreas,
This works for me if I take
http://dev.eclipse.org/viewcvs/index.cgi/%7Echeckout%7E/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet88.java
and replace the Text with a StyledText. Is there something about your case
that makes this not work for you? If so then you'll have to provide a
snippet that shows setFocus() not working.
Grant
"Andreas Niemeyer" <andreas.niemeyer@xxxxxxxxxxxx> wrote in message
news:g1hiq3$gil$1@xxxxxxxxxxxxxxxxxxxx
Hi,
I want to do a simple setForcus() but it doesn't work.
I know that a StyledText is a bit tricky - do I have to set a caret
before to get this thing active? It's intended to help users fill out a
form with a little support.
Thank you in advance.
Kind regards,
Andreas