Kirix Support Forums

Problems with resizable floating panes

Please post all general questions, comments, bug reports, and any other wxAUI feedback here.

Problems with resizable floating panes

Postby abligh on Thu Apr 20, 2006 7:40 am

I have a resizable floating pane, which contains a wxPanel, which contains a sizer and several controls.

I want to be able to prevent the wxFrame from resizing so small that the controls in the wxPanel are clipped. That /should/ be possible, because the wxPanel has a minimum size (from the sizer, from the children's minimum size and layout), which should reflect into the minimum size of the wxFloatingPane. But that doesn't seem to happen. I thought it was because wxFloatingPane does not itself contain a sizer, and added:

Code: Select all
        pSizer->Add(pane.window);
        SetSizer(pSizer);
        pSizer->SetSizeHints(this);


to SetPaneWindow, but that doesn't seem to do the trick.

How do I go about making sure resizable floating panes have a sensible minimum size? (I'm not talking about m_frame minimum size, that's a whole different can of worms).

Alex
abligh
Registered User
 
Posts: 59
Joined: Sun Jan 01, 2006 2:31 pm

Return to wxAUI Questions, Thoughts & Feedback