[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Re: StyledText in Table: how to set focus?

Hi Grant,

I've checked out the link you sent, unfortunatly I used a different variant where the text fields are already created when the table is created. Therefore I tried to fire a selection event to the TableEditor and setFocus(), setCaret and so on.

I'll come up with an isolated example when finding more time.

Thank you for responding.

Andreas


TableEditors when the table is created.

Grant Gayed schrieb:
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