I want to get this layout (created with wxCrafter 2.0 on Windows7)
but on my Beaglebone black instead I get this and i don't know why... and neither what to do.
This is the relevant code generated by wxCrafter:
Code: Select all
gridBagSizer1823 = new wxGridBagSizer(2, 1);
m_panel1825->SetSizer(gridBagSizer1823);
m_lSensAT = new wxStaticText(m_panel1825, wxID_ANY, _("AT"), wxDefaultPosition, wxSize(-1,-1), wxALIGN_CENTRE);
m_lSensAT->SetBackgroundColour(wxColour(wxT("rgb(0,0,255)")));
m_lSensAT->SetForegroundColour(wxColour(wxT("rgb(255,255,255)")));
gridBagSizer1823->Add(m_lSensAT, wxGBPosition(0,0), wxGBSpan(1,3), wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5);
m_lSensCT = new wxStaticText(m_panel1825, wxID_ANY, _("CT"), wxDefaultPosition, wxSize(-1,-1), wxALIGN_CENTRE);
m_lSensCT->SetBackgroundColour(wxColour(wxT("rgb(0,0,255)")));
m_lSensCT->SetForegroundColour(wxColour(wxT("rgb(255,255,255)")));
gridBagSizer1823->Add(m_lSensCT, wxGBPosition(0,3), wxGBSpan(1,3), wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5);
m_lSensBT = new wxStaticText(m_panel1825, wxID_ANY, _("BT"), wxDefaultPosition, wxSize(-1,-1), wxALIGN_CENTRE);
m_lSensBT->SetBackgroundColour(wxColour(wxT("rgb(0,0,255)")));
m_lSensBT->SetForegroundColour(wxColour(wxT("rgb(255,255,255)")));
gridBagSizer1823->Add(m_lSensBT, wxGBPosition(0,6), wxGBSpan(1,3), wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5);
m_lSensDT = new wxStaticText(m_panel1825, wxID_ANY, _("DT"), wxDefaultPosition, wxSize(-1,-1), wxALIGN_CENTRE);
m_lSensDT->SetBackgroundColour(wxColour(wxT("rgb(0,0,255)")));
m_lSensDT->SetForegroundColour(wxColour(wxT("rgb(255,255,255)")));
gridBagSizer1823->Add(m_lSensDT, wxGBPosition(0,9), wxGBSpan(1,3), wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5);
m_lSensET = new wxStaticText(m_panel1825, wxID_ANY, _("ET"), wxDefaultPosition, wxSize(-1,-1), wxALIGN_CENTRE);
m_lSensET->SetBackgroundColour(wxColour(wxT("rgb(0,0,255)")));
m_lSensET->SetForegroundColour(wxColour(wxT("rgb(255,255,255)")));
gridBagSizer1823->Add(m_lSensET, wxGBPosition(0,12), wxGBSpan(1,3), wxLEFT|wxRIGHT|wxEXPAND|wxALIGN_CENTER_HORIZONTAL|wxALIGN_BOTTOM, 5);
m_gSensT_A1 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_SMOOTH|wxGA_VERTICAL);
m_gSensT_A1->SetValue(32);
gridBagSizer1823->Add(m_gSensT_A1, wxGBPosition(1,0), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_RIGHT|wxALIGN_TOP, 5);
m_gSensT_A1->SetMinSize(wxSize(30,-1));
m_gSensT_A2 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_SMOOTH|wxGA_VERTICAL);
m_gSensT_A2->SetValue(32);
gridBagSizer1823->Add(m_gSensT_A2, wxGBPosition(1,2), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP, 5);
m_gSensT_A2->SetMinSize(wxSize(30,-1));
m_gSensT_C1 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_SMOOTH|wxGA_VERTICAL);
m_gSensT_C1->SetValue(32);
gridBagSizer1823->Add(m_gSensT_C1, wxGBPosition(1,3), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_RIGHT|wxALIGN_TOP, 5);
m_gSensT_C1->SetMinSize(wxSize(30,-1));
m_gSensT_C2 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_VERTICAL);
m_gSensT_C2->SetValue(110);
gridBagSizer1823->Add(m_gSensT_C2, wxGBPosition(1,5), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP, 5);
m_gSensT_C2->SetMinSize(wxSize(30,-1));
m_gSensT_B1 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_VERTICAL);
m_gSensT_B1->SetValue(110);
gridBagSizer1823->Add(m_gSensT_B1, wxGBPosition(1,6), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_RIGHT|wxALIGN_TOP, 5);
m_gSensT_B1->SetMinSize(wxSize(30,-1));
m_gSensT_B2 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_VERTICAL);
m_gSensT_B2->SetValue(110);
gridBagSizer1823->Add(m_gSensT_B2, wxGBPosition(1,8), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP, 5);
m_gSensT_B2->SetMinSize(wxSize(30,-1));
m_gSensT_D1 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_VERTICAL);
m_gSensT_D1->SetValue(110);
gridBagSizer1823->Add(m_gSensT_D1, wxGBPosition(1,9), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_RIGHT|wxALIGN_TOP, 5);
m_gSensT_D1->SetMinSize(wxSize(30,-1));
m_gSensT_D2 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_VERTICAL);
m_gSensT_D2->SetValue(110);
gridBagSizer1823->Add(m_gSensT_D2, wxGBPosition(1,11), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP, 5);
m_gSensT_D2->SetMinSize(wxSize(30,-1));
m_gSensT_E1 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_VERTICAL);
m_gSensT_E1->SetValue(110);
gridBagSizer1823->Add(m_gSensT_E1, wxGBPosition(1,12), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_RIGHT|wxALIGN_TOP, 5);
m_gSensT_E1->SetMinSize(wxSize(30,-1));
m_gSensT_E2 = new wxGauge(m_panel1825, wxID_ANY, 255, wxDefaultPosition, wxSize(-1,-1), wxGA_VERTICAL);
m_gSensT_E2->SetValue(110);
gridBagSizer1823->Add(m_gSensT_E2, wxGBPosition(1,14), wxGBSpan(1,1), wxALL|wxEXPAND|wxALIGN_LEFT|wxALIGN_TOP, 5);
m_gSensT_E2->SetMinSize(wxSize(30,-1));
gridBagSizer1823->AddGrowableRow(1);