FormToolkit Section - resetting composite [message #445718] |
Tue, 09 November 2004 21:36  |
Eclipse User |
|
|
|
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 10:50  |
Eclipse User |
|
|
|
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
>
|
|
|
Powered by
FUDForum. Page generated in 0.08412 seconds