[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: SWT Label redraw()/update()

Thanks, I'll give that a try. Another interesting piece of information is
that once I resize the window the first time to realize the effects of the
Label's text update, all subsequent updates
(setText()->redraw()->update()) on the Label seem to work fine without
having to manually resize the window. Weird!

Florian Georg wrote:

> Hi,

> Calling "layout()" on the parent Composite might help.
> (I have had a simmilar problem when adding/disposing controls
> within a composite dynamically)

> - Florian



> Don Sedota wrote:
> > I can't seem to get the repaint or specifically the redraw(), followed by
> > an update(), to work for SWT labels within my plugin. I am trying to
> > update the text in a particular Label within a customized view by doing
> > the following while inside the event loop thread;
> > 
> > label.setText(someText);
> > label.redraw();
> > label.update();
> > 
> > It looks like the label.setText() is working, but the Label does not
> > reflect the changes until I resize the screen. Does anyone have any idea
> > what I might be missing? BTW - I'm running the plugin via the runtime
> > workbench, if that makes any difference.
> > 
> > 
> >