14DIALOG_SWAP_LAYERS_BASE::DIALOG_SWAP_LAYERS_BASE( wxWindow* parent, wxWindowID
id,
const wxString& title,
const wxPoint& pos,
const wxSize& size,
long style ) :
DIALOG_SHIM( parent, id, title, pos, size, style )
16 this->SetSizeHints( wxDefaultSize, wxDefaultSize );
18 wxBoxSizer* bMainSizer;
19 bMainSizer =
new wxBoxSizer( wxVERTICAL );
21 wxBoxSizer* bMarginsSizer;
22 bMarginsSizer =
new wxBoxSizer( wxVERTICAL );
24 m_grid =
new WX_GRID(
this, wxID_ANY, wxDefaultPosition, wxDefaultSize, 0 );
27 m_grid->CreateGrid( 2, 2 );
28 m_grid->EnableEditing(
true );
29 m_grid->EnableGridLines(
true );
30 m_grid->EnableDragGridSize(
false );
31 m_grid->SetMargins( 0, 0 );
34 m_grid->SetColSize( 0, 125 );
35 m_grid->SetColSize( 1, 125 );
36 m_grid->EnableDragColMove(
false );
37 m_grid->EnableDragColSize(
false );
39 m_grid->SetColLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
42 m_grid->EnableDragRowSize(
false );
43 m_grid->SetRowLabelSize( 0 );
44 m_grid->SetRowLabelAlignment( wxALIGN_CENTRE, wxALIGN_CENTRE );
49 m_grid->SetDefaultCellAlignment( wxALIGN_LEFT, wxALIGN_TOP );
50 m_grid->SetMinSize( wxSize( 250,150 ) );
52 bMarginsSizer->Add(
m_grid, 1, wxEXPAND|wxALL, 5 );
55 bMainSizer->Add( bMarginsSizer, 1, wxEXPAND|wxTOP|wxRIGHT|wxLEFT, 10 );
64 bMainSizer->Add(
m_sdbSizer, 0, wxALL|wxEXPAND, 5 );
67 this->SetSizer( bMainSizer );
69 bMainSizer->Fit(
this );
71 this->Centre( wxBOTH );
Dialog helper object to sit in the inheritance tree between wxDialog and any class written by wxFormB...
DIALOG_SWAP_LAYERS_BASE(wxWindow *parent, wxWindowID id=wxID_ANY, const wxString &title=_("Swap Layers"), const wxPoint &pos=wxDefaultPosition, const wxSize &size=wxDefaultSize, long style=wxDEFAULT_DIALOG_STYLE|wxRESIZE_BORDER)
wxButton * m_sdbSizerCancel
virtual void OnSize(wxSizeEvent &event)
~DIALOG_SWAP_LAYERS_BASE()
wxStdDialogButtonSizer * m_sdbSizer
void SetColLabelSize(int aHeight)
Hide wxGrid's SetColLabelSize() method with one which makes sure the size is tall enough for the syst...