Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » "redraw()" cannot update the display
"redraw()" cannot update the display [message #460596] Thu, 01 September 2005 01:46 Go to next message
Eclipse UserFriend
Originally posted by: murley.murley.murley

Hello,
I have 2 composite in my UI. Left hand side is a button, while the right
hand side is a label.
My idea is when user click the button, the label in right hand side will
be disposed and create a Text. The problem is that when i click the button,
right hand side do not change UNTIL i minimize and maximize my application.

I was already call redraw() method, but do not success. Do anyone have any
idea?
Thanks for help~
Re: "redraw()" cannot update the display [message #460600 is a reply to message #460596] Thu, 01 September 2005 04:09 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: sunil_kamath.nohotspammail.com

"murley" <murley@murley.murley> wrote in message
news:df5mhs$poq$1@news.eclipse.org...
> Hello,
> I have 2 composite in my UI. Left hand side is a button, while the right
> hand side is a label.
> My idea is when user click the button, the label in right hand side will
> be disposed and create a Text. The problem is that when i click the
> button, right hand side do not change UNTIL i minimize and maximize my
> application.
>
> I was already call redraw() method, but do not success. Do anyone have
> any idea?
> Thanks for help~
Call layout() on the RH composite after the dispose/create.
---
Sunil
Re: "redraw()" cannot update the display [message #460606 is a reply to message #460600] Thu, 01 September 2005 08:44 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: murley.murley.murley

thanks, it works
but what the difference between redraw() and layout()..
Re: "redraw()" cannot update the display [message #460613 is a reply to message #460606] Thu, 01 September 2005 14:04 Go to previous message
Eclipse UserFriend
Originally posted by: richkulp.us.NO_SPAM.ibm.com

redraw simply says repaint what's there. layout says to size and
position the children. Just creating a child doesn't size and position
it. It is at (0,0) with size (0,0). Layout will take the current layout
manager and size and position the children, including the new child.

murley wrote:
> thanks, it works
> but what the difference between redraw() and layout()..
>
>

--
Thanks,
Rich Kulp
Previous Topic:Flat combo in SWT forms
Next Topic:How can I manipulate the size of image without scaling ?
Goto Forum:
  


Current Time: Fri Apr 26 09:09:44 GMT 2024

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

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

Back to the top