KiCad PCB EDA Suite
wx_aui_utils.cpp File Reference
#include <wx/aui/aui.h>
#include <widgets/wx_aui_utils.h>

Go to the source code of this file.

Functions

void SetAuiPaneSize (wxAuiManager &aManager, wxAuiPaneInfo &aPane, int aWidth, int aHeight)
 Sets the size of an AUI pane, working around http://trac.wxwidgets.org/ticket/13180. More...
 

Function Documentation

◆ SetAuiPaneSize()

void SetAuiPaneSize ( wxAuiManager &  aManager,
wxAuiPaneInfo &  aPane,
int  aWidth,
int  aHeight 
)

Sets the size of an AUI pane, working around http://trac.wxwidgets.org/ticket/13180.

Parameters
aManageris an AUI manager
aPaneis a wxAuiPaneInfo containing pane info managed by aManager
aWidthis the width to set (-1 for automatic)
aHeightis the height to set (-1 for automatic)

Definition at line 24 of file wx_aui_utils.cpp.

25 {
26  wxSize minSize = aPane.min_size;
27 
28  // wxAUI hack: force width by setting MinSize() and then Fixed()
29  // thanks to ZenJu http://trac.wxwidgets.org/ticket/13180
30  aPane.MinSize( aWidth, aHeight );
31  aPane.Fixed();
32  aManager.Update();
33 
34  // now make it resizable again
35  aPane.MinSize( minSize.x, minSize.y );
36  aPane.Resizable();
37  aManager.Update();
38 }
const int minSize
Push and Shove router track width and via size dialog.

References minSize.

Referenced by EVT_UPDATE_UI_RANGE(), FOOTPRINT_EDIT_FRAME::FOOTPRINT_EDIT_FRAME(), FOOTPRINT_EDIT_FRAME::ToggleLayersManager(), and PCB_EDIT_FRAME::ToggleLayersManager().