PageBook layout changes after selection [message #528550] |
Tue, 20 April 2010 18:28  |
Eclipse User |
|
|
|
I have a PageBook with three composites, whcih are each displayed in turn by calling showPage() with one of the Composites as an argument.
The first time I show a given Composite, it's laid out as I want it to be. But then when I switch to another Composite, its layout is all messed up, although it would have looked fine had I shown it first instead of the other one. And likewise, when I show the original Composite again, its layout is messed up.
I've tried various combinations of invoking redraw() and layout() on each composite and on the PageBook before showing a different Composite. But no matter what I do, I can't get the PageBook to show a Composite properly after switching to or from it.
|
|
|
Re: PageBook layout changes after selection [message #528833 is a reply to message #528550] |
Wed, 21 April 2010 23:49  |
Eclipse User |
|
|
|
This was a cockpit error. The PageBook is inside a PageBookView, and I failed to specify the correct parent in the createControl() method of the IPage instance that holds the PageBook I was having the problem with. I had forgotten to use getPageBook() as the parent for created controls, instead of the Composite argument passed to createControls().
|
|
|
Powered by
FUDForum. Page generated in 0.04739 seconds