Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsWidget not being displayed
https://www.eclipse.org/forums/index.php/mv/msg/142280/448111/#msg_448111
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]]>Kevin Jones2005-01-03T13:45:23-00:00Re: Widget not being displayed
https://www.eclipse.org/forums/index.php/mv/msg/142280/448112/#msg_448112
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]]>Charlie Surface2005-01-03T13:53:06-00:00Re: Widget not being displayed
https://www.eclipse.org/forums/index.php/mv/msg/142280/448113/#msg_448113
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]]>Kevin Jones2005-01-03T14:20:10-00:00