Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Refresh Composite
Refresh Composite [message #445491] Sun, 07 November 2004 23:32 Go to next message
Fred is currently offline FredFriend
Messages: 11
Registered: July 2009
Junior Member
Hi, I'am new to SWT (I come from Swing). I use moveBelow(Control control)
fct on a Composite object to change position of some Labels inside the
composite (after drag and drop operation).
I call update() on the Composite, but all the Labels stay at their
original position. If I resize the Shell (with a mouse) the Labels appears
in the new order...
I don't known how to redraw-update-refresh so the new order can be seen by
the user without having to resize the app window.I even tried dispose all
the Children of the Composite and add new ones...

Thanks for your help.

Fred
Re: Refresh Composite [message #445556 is a reply to message #445491] Mon, 08 November 2004 11:58 Go to previous messageGo to next message
Robert Bacs is currently offline Robert BacsFriend
Messages: 165
Registered: July 2009
Senior Member
Hi,

Try to use composite.layout(true) or simply composite.layout().

Regards,
Boby


"Fred" <fsimard-fournier@sympatico.ca> wrote in message
news:cmmbb2$l07$1@eclipse.org...
> Hi, I'am new to SWT (I come from Swing). I use moveBelow(Control control)
> fct on a Composite object to change position of some Labels inside the
> composite (after drag and drop operation).
> I call update() on the Composite, but all the Labels stay at their
> original position. If I resize the Shell (with a mouse) the Labels appears
> in the new order...
> I don't known how to redraw-update-refresh so the new order can be seen by
> the user without having to resize the app window.I even tried dispose all
> the Children of the Composite and add new ones...
>
> Thanks for your help.
>
> Fred
>
>
>
>
Re: Refresh Composite [message #445681 is a reply to message #445556] Tue, 09 November 2004 00:15 Go to previous message
Fred is currently offline FredFriend
Messages: 11
Registered: July 2009
Junior Member
Thanks a lot. it works fine !
Fred

Robert Bacs wrote:

> Hi,

> Try to use composite.layout(true) or simply composite.layout().

> Regards,
> Boby


> "Fred" <fsimard-fournier@sympatico.ca> wrote in message
> news:cmmbb2$l07$1@eclipse.org...
>> Hi, I'am new to SWT (I come from Swing). I use moveBelow(Control control)
>> fct on a Composite object to change position of some Labels inside the
>> composite (after drag and drop operation).
>> I call update() on the Composite, but all the Labels stay at their
>> original position. If I resize the Shell (with a mouse) the Labels appears
>> in the new order...
>> I don't known how to redraw-update-refresh so the new order can be seen by
>> the user without having to resize the app window.I even tried dispose all
>> the Children of the Composite and add new ones...
>>
>> Thanks for your help.
>>
>> Fred
>>
>>
>>
>>
Previous Topic:Disabled images not drawn properly on windows?
Next Topic:Content displayed after Resizing of Window
Goto Forum:
  


Current Time: Thu Apr 25 10:55:03 GMT 2024

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

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

Back to the top