Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Content displayed after Resizing of Window
Content displayed after Resizing of Window [message #445488] Sun, 07 November 2004 19:18 Go to next message
Eclipse UserFriend
Originally posted by: chhil.domain.invalid

Hello,

I have a very small (sample) app that extends ApplicationWindow, I have
overidden createMenuManager and createContents. When the app runs a
shell window opens with menuba and menus but the table that was created
in the createContents does not show up.
It only shows up when I resize the window.

Just curious as to what am I doing wrong here.

regards Chhil
Re: Content displayed after Resizing of Window [message #445643 is a reply to message #445488] Mon, 08 November 2004 15:55 Go to previous messageGo to next message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
Have you called shell.layout(true) after creating all the child widgets?

"Chhil" <chhil@domain.invalid> wrote in message
news:cmlscs$t39$1@eclipse.org...
> Hello,
>
> I have a very small (sample) app that extends ApplicationWindow, I have
> overidden createMenuManager and createContents. When the app runs a shell
> window opens with menuba and menus but the table that was created in the
> createContents does not show up.
> It only shows up when I resize the window.
>
> Just curious as to what am I doing wrong here.
>
> regards Chhil
Re: Content displayed after Resizing of Window [message #445648 is a reply to message #445488] Mon, 08 November 2004 16:05 Go to previous messageGo to next message
Steve Northover is currently offline Steve NorthoverFriend
Messages: 1636
Registered: July 2009
Senior Member
Is this a flavour of https://bugs.eclipse.org/bugs/show_bug.cgi?id=77441 ?

"Chhil" <chhil@domain.invalid> wrote in message
news:cmlscs$t39$1@eclipse.org...
> Hello,
>
> I have a very small (sample) app that extends ApplicationWindow, I have
> overidden createMenuManager and createContents. When the app runs a
> shell window opens with menuba and menus but the table that was created
> in the createContents does not show up.
> It only shows up when I resize the window.
>
> Just curious as to what am I doing wrong here.
>
> regards Chhil
Re: Content displayed after Resizing of Window [message #445659 is a reply to message #445643] Mon, 08 November 2004 23:31 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chhil.domain.invalid

Hello Veronica,

Thank you....calling the shell.layout(true) fixes it.
I have seen various examples and none of them call this method.

Why does resize fix cause the widgets to be displayed?
Please explain...

Regards Chhil
Re: Content displayed after Resizing of Window [message #445680 is a reply to message #445648] Mon, 08 November 2004 23:36 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: chhil.domain.invalid

Hello Steve,
I have 3.1 M3 so I doubt it if its the same issue.
Veronica's solution fixes my problem.
Regards Chhil
Re: Content displayed after Resizing of Window [message #445687 is a reply to message #445659] Tue, 09 November 2004 12:52 Go to previous message
Veronika Irvine is currently offline Veronika IrvineFriend
Messages: 1272
Registered: July 2009
Senior Member
A resize of the shell results in the Layout on the shell being applied
(Layout.layout).


"Chhil" <chhil@domain.invalid> wrote in message
news:cmovkc$lra$1@eclipse.org...
> Hello Veronica,
>
> Thank you....calling the shell.layout(true) fixes it.
> I have seen various examples and none of them call this method.
>
> Why does resize fix cause the widgets to be displayed?
> Please explain...
>
> Regards Chhil
Previous Topic:Refresh Composite
Next Topic:How to output some different color text?
Goto Forum:
  


Current Time: Thu Apr 25 03:46:41 GMT 2024

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

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

Back to the top