GSOC Day 24 – Info Panel Panels

I spent my day today wrestling with the information panel, starting to replace the code for displaying information once again, this time to construct collapsible panels on the fly rather than using a tree structure. I had to figure out a way to use the wx.lib.foldpanelbar.FoldPanelBar class in XRC, which didn’t automatically support it. Adding a handler, as per Mithro’s advice, fixed the problem. I then had to work with layouts for a while, forcing the panels to resize themselves correctly and place themselves properly.

Then, I had the problem that the panel was not showing any scrollbars, which meant that you couldn’t usually see much. I managed to replace it with a ScrolledPanel, which required another handler class.

The moral of the story? wxWidgets and XRC are rather finnicky. You have to get everything right, or it doesn’t do what you expect.

Tomorrow, I’ll have to deal with the fact that the FoldPanelBars don’t seem to want to resize smaller when they should, and then work on the content that goes into them, but for now, it at least looks kind of like what I want it to look like.

Here’s a screenshot:

Panels in the information panel.

Panels in the information panel.


~ by greywhind on June 15, 2009.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: