[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.platform.swt] Can i reclaim area of a contol (or composite) by hiding it

hi..
After searching a lot of web pages i am posting this question.
suppose a window have a control(say a text) or a composite (say sash form). Now programmatically i hide it using setVisible() method. Now control or composite will be hided but area of that control or composite is not reclaimed by the window(window width and height should be decreased reclaiming the area of that control or composite because control is not visible). I tried shell to redraw and layout(true) method to get it working. But it do not behaving as expected.
Also when i make these controls visible again window should be redrawn showing controls.
Yes when i dispose the control, window reclaims its area and is redrawn. But i want same thing when i hide control.


Am i doing any thing wrong??