Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » FormToolkit Section - resetting composite
FormToolkit Section - resetting composite [message #445718] Wed, 10 November 2004 02:36 Go to next message
Eclipse UserFriend
Originally posted by: storaskar.xx.xxx.xxx

I am using Formtoolkit and have a section inside it. I set the initial
composite (say C1) on that section. Somewhere down the line, I need to
replace this composite with another one (C2). I do call the necessary API
section.setClient(c2) to set new composite. But I don't see any changes on
UI. If I debug into the method, I know that C2 is picked up correctly. But
is there any other method I need to call on section to see that reflected
change on UI. I had tried update, setRedraw(true), layout(true) etc. But
no effect.

Any ideas ?

Shilpa
Re: FormToolkit Section - resetting composite [message #445759 is a reply to message #445718] Wed, 10 November 2004 15:50 Go to previous message
Chris Gross is currently offline Chris GrossFriend
Messages: 471
Registered: July 2009
Senior Member
I'm not sure if what you're trying to do is supported. Are you calling
dispose() on your initial (C1) composite?

You might try using the StackLayout in the section. StackLayout allows you
to put multiple composites within the parent and then bring one to the top
dynamically.

-Chris

"Shilpa" <storaskar@xx.xxx.xxx> wrote in message
news:cmruqi$3ut$1@eclipse.org...
>
> I am using Formtoolkit and have a section inside it. I set the initial
> composite (say C1) on that section. Somewhere down the line, I need to
> replace this composite with another one (C2). I do call the necessary API
> section.setClient(c2) to set new composite. But I don't see any changes on
> UI. If I debug into the method, I know that C2 is picked up correctly. But
> is there any other method I need to call on section to see that reflected
> change on UI. I had tried update, setRedraw(true), layout(true) etc. But
> no effect.
>
> Any ideas ?
>
> Shilpa
>
Previous Topic:CTabFolder SetMinimized bug?
Next Topic:building one Image from severall
Goto Forum:
  


Current Time: Wed Oct 28 23:27:44 GMT 2020

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

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

Back to the top