Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » how to add widget to a composite after the composite is displayed ?
how to add widget to a composite after the composite is displayed ? [message #211108] Wed, 08 March 2006 09:11 Go to next message
Eclipse UserFriend
Originally posted by: tmxk2008.gmail.com

if a composite is showed in runtime ,and I click a button to create a Text to be put in this composite .
but the added Text couldn't be show even I redraw the composite.

Could someone tell the cause.
Re: how to add widget to a composite after the composite is displayed ? [message #211196 is a reply to message #211108] Wed, 08 March 2006 21:46 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: kwpeck.mersoft.com

Seems like more of a SWT question to me but I will see if I can help.

In general you need to build your full layout then hide the widgets you
don't want to see. When they press the button you make widgets visible.
I don't believe, and I could be wrong, that you can add a widget to a
composite later. They all must be there from the start and you can show
and hide them as needed from there.

heima2008 wrote:
> if a composite is showed in runtime ,and I click a button to create a Text to be put in this composite .
> but the added Text couldn't be show even I redraw the composite.
>
> Could someone tell the cause.
Re: how to add widget to a composite after the composite is displayed ? [message #211211 is a reply to message #211196] Thu, 09 March 2006 00:51 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: tmxk2008.gmail.com

you are right.
but i can't certain the how much the widgets to be put in Composite in Compile Time,just can be certained in running time.
Re: how to add widget to a composite after the composite is displayed ? [message #211791 is a reply to message #211211] Wed, 15 March 2006 22:05 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: micah.whitacre.cerner.com

heima2008 wrote:
> you are right.
> but i can't certain the how much the widgets to be put in Composite in Compile Time,just can be certained in running time.

If you call composite.layout(true), it should make the widget appear.
Re: how to add widget to a composite after the composite is displayed ? [message #211831 is a reply to message #211791] Thu, 16 March 2006 00:42 Go to previous message
Eclipse UserFriend
Originally posted by: tmxk2008.gmail.com

Yes,you are right
I had found this methor yesterday.
it really works !
thanks!
Previous Topic:RTF Editor using GEF
Next Topic:Contacting rlemaigr
Goto Forum:
  


Current Time: Thu Mar 28 08:23:42 GMT 2024

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

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

Back to the top