Appending Text to SWT Textbox from multiple threads.
Jacob Carlborg
doob at me.com
Tue Mar 18 00:19:04 PDT 2014
On Monday, 17 March 2014 at 23:16:16 UTC, Sharad Gupta wrote:
> Hi All,
>
> I am trying to update a text box from another thread but it has
> me stumped right now.
>
> What I am trying to achieve is that the user can Initiate
> multiple pipeShell and the output from each of those should go
> into its own Textbox in parallel.
>
> I tried creating the SWT UI Controls inside as well as outside
> my spawn but since they get added to a single parent Control
> its getting maddeningly frustrating.
What exact problems do you have?
Note that SWT is not thread safe. All UI changes need to be made
on the UI thread. This is usually done using the
"Display.asyncExec" method.
--
/Jacob Carlborg
More information about the Digitalmars-d-learn
mailing list