Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Dynamic placement of composites on composites
Dynamic placement of composites on composites [message #465100] Tue, 06 December 2005 08:28 Go to next message
Eclipse UserFriend
Originally posted by: mwilli.iastate.edu

Hi, I'm writing a program to play poker, and as user's join the table,
their cards and such need to appear on a composite. As users join or
leave, their cards and such are created and disposed of accordingly.
Unfortunately, I can't get the players to appear on the parent composite
when they join the room. They are set to visible, but still nothing. Any
ideas of how to create a composite and make it visible on another
composite during runtime?

Thanks, Mike
Re: Dynamic placement of composites on composites [message #465107 is a reply to message #465100] Tue, 06 December 2005 09:02 Go to previous messageGo to next message
Stefan Langer is currently offline Stefan LangerFriend
Messages: 236
Registered: July 2009
Senior Member
Have you relayouted the parent composite after the new composite was
created? If you are using a canvas you might also need to redraw.

Look at layout() and all its derivates.

Regards
Stefan

Mike Williams wrote:
> Hi, I'm writing a program to play poker, and as user's join the table,
> their cards and such need to appear on a composite. As users join or
> leave, their cards and such are created and disposed of accordingly.
> Unfortunately, I can't get the players to appear on the parent composite
> when they join the room. They are set to visible, but still nothing. Any
> ideas of how to create a composite and make it visible on another
> composite during runtime?
>
> Thanks, Mike
Re: Dynamic placement of composites on composites [message #465129 is a reply to message #465107] Tue, 06 December 2005 15:00 Go to previous message
Eclipse UserFriend
Originally posted by: mwilli.iastate.edu

Thank you so much, you are a lifesaver. It worked beautifully.

Mike

Stefan Langer wrote:
> Have you relayouted the parent composite after the new composite was
> created? If you are using a canvas you might also need to redraw.
>
> Look at layout() and all its derivates.
>
> Regards
> Stefan
>
> Mike Williams wrote:
>> Hi, I'm writing a program to play poker, and as user's join the table,
>> their cards and such need to appear on a composite. As users join or
>> leave, their cards and such are created and disposed of accordingly.
>> Unfortunately, I can't get the players to appear on the parent
>> composite when they join the room. They are set to visible, but still
>> nothing. Any ideas of how to create a composite and make it visible on
>> another composite during runtime?
>>
>> Thanks, Mike
Previous Topic:Redraw?
Next Topic:linux, java 5 and swt
Goto Forum:
  


Current Time: Sat Dec 14 09:31:17 GMT 2024

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

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

Back to the top