Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Widget not being displayed
Widget not being displayed [message #448111] Mon, 03 January 2005 13:45 Go to next message
Kevin Jones is currently offline Kevin JonesFriend
Messages: 2
Registered: July 2009
Junior Member
This is on Windows XP with Eclipse 3.0.

I'm trying to create a Canvas (although I've also seen this with other
widgets), after a Shell has been created and shown. i.e. I create the
shell, enter the event loop, then in response to an event I create a
Canvas as a child of the main shell. When I do this the canvas is not
show, if I cause the shell to re-size (i.e. setBounds or simply resizing
the window) then the Canvas gets its paint event and is shown.

I've tried several things such as calling update and redraw both on the
shell and the canvas but no luck.

If I create the Canvas before showing the shell then all is well.

Can I force the canvas to 'appear' without re-sizing the shell?

Kevin
Re: Widget not being displayed [message #448112 is a reply to message #448111] Mon, 03 January 2005 13:53 Go to previous messageGo to next message
Charlie Surface is currently offline Charlie SurfaceFriend
Messages: 40
Registered: July 2009
Member
Try calling layout().

Charlie


Kevin Jones wrote:
> This is on Windows XP with Eclipse 3.0.
>
> I'm trying to create a Canvas (although I've also seen this with other
> widgets), after a Shell has been created and shown. i.e. I create the
> shell, enter the event loop, then in response to an event I create a
> Canvas as a child of the main shell. When I do this the canvas is not
> show, if I cause the shell to re-size (i.e. setBounds or simply resizing
> the window) then the Canvas gets its paint event and is shown.
>
> I've tried several things such as calling update and redraw both on the
> shell and the canvas but no luck.
>
> If I create the Canvas before showing the shell then all is well.
>
> Can I force the canvas to 'appear' without re-sizing the shell?
>
> Kevin
Re: Widget not being displayed [message #448113 is a reply to message #448112] Mon, 03 January 2005 14:20 Go to previous message
Kevin Jones is currently offline Kevin JonesFriend
Messages: 2
Registered: July 2009
Junior Member
d'oh!

Thanks,

> Try calling layout().
>
> Charlie
>
>
> Kevin Jones wrote:
>
>> This is on Windows XP with Eclipse 3.0.
>>
>> I'm trying to create a Canvas (although I've also seen this with other
>> widgets), after a Shell has been created and shown. i.e. I create the
>> shell, enter the event loop, then in response to an event I create a
>> Canvas as a child of the main shell. When I do this the canvas is not
>> show, if I cause the shell to re-size (i.e. setBounds or simply
>> resizing the window) then the Canvas gets its paint event and is shown.
>>
>> I've tried several things such as calling update and redraw both on
>> the shell and the canvas but no luck.
>>
>> If I create the Canvas before showing the shell then all is well.
>>
>> Can I force the canvas to 'appear' without re-sizing the shell?
>>
>> Kevin
Previous Topic:Table column size
Next Topic:determine Font pixel height outside of GC
Goto Forum:
  


Current Time: Sat Apr 20 01:44:52 GMT 2024

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

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

Back to the top