Custom dialog with ScrolledPanel component

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.

I’ve put a smallish example up at http://paste.ubuntu.com/6191739/ .

Can anyone point where I’m goofing?

Thanks,

Ross

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.

I've put a smallish example up at Ubuntu Pastebin .

Can anyone point where I'm goofing?

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.

goof.py (1.93 KB)

···

--
Robin Dunn
Software Craftsman

Thanks Robin,

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.

I’ve put a smallish example up at http://paste.ubuntu.com/6191739/ .

Can anyone point where I’m goofing?

Thanks,

Ross