I’m trying to write a custom dialog which contains a ScrolledPanel. I can boilerplate what I want with a Panel and it works except the (on purpose) panel is truncated. So far so good. But when I use a ScrolledPanel in place of Panel and use SetupScrolling() the layout isn’t correct. I can see the top left corner of the top button on the ScrolledPanel only.
I'm trying to write a custom dialog which contains a ScrolledPanel. I
can boilerplate what I want with a Panel and it works except the (on
purpose) panel is truncated. So far so good. But when I use a
ScrolledPanel in place of Panel and use SetupScrolling() the layout
isn't correct. I can see the top left corner of the top button on the
ScrolledPanel only.
You didn't set the bottom panel to take all the remaining space in the dialog (proportion=1) and you didn't add the subpanels to the bottom panel's sizer.
I still have trouble getting things right in more complicated scenarios. I’ll start another thread on documentation.
Ross
···
On Friday, October 4, 2013 8:31:01 PM UTC+9:30, rzzzwilson wrote:
Hi All,
I’m trying to write a custom dialog which contains a ScrolledPanel. I can boilerplate what I want with a Panel and it works except the (on purpose) panel is truncated. So far so good. But when I use a ScrolledPanel in place of Panel and use SetupScrolling() the layout isn’t correct. I can see the top left corner of the top button on the ScrolledPanel only.