Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] Howto change text across threads


Use Display.syncExec or Display.asyncExec.
Here's a snippet:
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/snippits/snippet7.html

In future, please ask questions on the newsgroup. See the "SWT Newsgroup" section of the following page to find out how:
http://dev.eclipse.org/viewcvs/index.cgi/~checkout~/platform-swt-home/SWT_Resources.html

Carolyn



"Hans Lassen - Arsmatrix.com" <hans@xxxxxxxxxxxxx>
Sent by: platform-swt-dev-admin@xxxxxxxxxxx

04/07/2004 10:42 AM

Please respond to
platform-swt-dev

To
platform-swt-dev@xxxxxxxxxxx
cc
Subject
[platform-swt-dev] Howto change text across threads





Hi,

How do I change the contents of a Text-field from another Thread.

I have a Text field which all threads should log their states to, but I
keep getting error messages saying that I'm not allowed to change the
contents across Threads.

What is the proper way to do this?

/Hans

_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
http://dev.eclipse.org/mailman/listinfo/platform-swt-dev


Back to the top