Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Adding widgets to a viewer
Adding widgets to a viewer [message #452339] Thu, 17 March 2005 14:46 Go to next message
Eclipse UserFriend
Originally posted by: gte240u.mail.gatech.edu

My application needs to add canvases to the viewer based on mouse events.
However,
these canvases are not visible in the view until the view is manually
resized. I have tried
calling update(), redraw() on both the canvas and the parent widget with no
luck.

What do I need to do so that the canvases become visible as soon as they are
added?

Thanks,

Jai
Re: Adding widgets to a viewer [message #452360 is a reply to message #452339] Fri, 18 March 2005 08:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: bob.objfac.com

layout()?

Bob Foster

Jai Kejriwal wrote:
> My application needs to add canvases to the viewer based on mouse events.
> However,
> these canvases are not visible in the view until the view is manually
> resized. I have tried
> calling update(), redraw() on both the canvas and the parent widget with no
> luck.
>
> What do I need to do so that the canvases become visible as soon as they are
> added?
>
> Thanks,
>
> Jai
>
>
Re: Adding widgets to a viewer [message #452406 is a reply to message #452360] Sun, 20 March 2005 08:19 Go to previous message
Eclipse UserFriend
Originally posted by: gte240u.mail.gatech.edu

Thanks, that works.


"Bob Foster" <bob@objfac.com> wrote in message
news:423A90C8.8030609@objfac.com...
> layout()?
>
> Bob Foster
>
> Jai Kejriwal wrote:
> > My application needs to add canvases to the viewer based on mouse
events.
> > However,
> > these canvases are not visible in the view until the view is manually
> > resized. I have tried
> > calling update(), redraw() on both the canvas and the parent widget with
no
> > luck.
> >
> > What do I need to do so that the canvases become visible as soon as they
are
> > added?
> >
> > Thanks,
> >
> > Jai
> >
> >
Previous Topic:[JFace] convertHorizontalDLUsToPixels resulting in very big Dialogs
Next Topic:Table-type control
Goto Forum:
  


Current Time: Thu Oct 17 15:10:43 GMT 2019

Powered by FUDForum. Page generated in 0.02468 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top