|
|
|
Re: no scrollbars when expanding section with managedform.reflow () [message #452292 is a reply to message #452278] |
Thu, 17 March 2005 02:28 |
Jason Grant Messages: 77 Registered: July 2009 |
Member |
|
|
Thanks Dimitry,
That does the trick. I spent a lot of hours on this one, and to be
honest, I still don't fully understand the distinctions between reflow(),
layout(), pack(), redraw(), etc., nor how they propagate up/down a
hierarchy of SWT components/forms. It would be good if somebody in the
know could write a little on these - I have colleagues who have also spent
a lot of time fiddling with reflow() and layout().
I think you're right. For some reason, the mform.reflow() doesn't affect
the ScrolledComposite. Seems like a bug to me.
The other curious thing about this is that the expanding section
sends a reflow() up the hierarchy by default, but this also does nothing
to the scrollbars.
For the benefit of others, here're the other things that I tried in my
expansion handler, to no avail:
public void expansionStateChanged(ExpansionEvent e) {
// exifSection.layout(true);
// exifSection.pack(true);
// exifSection.notifyListeners(SWT.Resize, new Event());
// mform.reflow(true);
// mform.getForm().layout();
// mform.getForm().reflow(true); // This is what mform.reflow() does
// mform.getForm().redraw();
// mform.getForm().notifyListeners(SWT.Resize, new Event());
// parent.getParent().getParent().layout(true);
((SharedScrolledComposite)(parent.getParent().getParent())). reflow(true);
}
|
|
|
|
Powered by
FUDForum. Page generated in 0.03470 seconds