Commit b275d34d authored by dickelbeck's avatar dickelbeck

remove AddChild()

parent f52d03fb
...@@ -128,7 +128,6 @@ private: ...@@ -128,7 +128,6 @@ private:
wxSize txtz; wxSize txtz;
txtz = m_NameStaticText->GetSize(); txtz = m_NameStaticText->GetSize();
// m_NameStaticText->Move( 0, 5 );
m_NameStaticText->Move( offset + (widths[0] - txtz.x)/2, 5 ); m_NameStaticText->Move( offset + (widths[0] - txtz.x)/2, 5 );
offset += widths[0]; offset += widths[0];
...@@ -265,15 +264,14 @@ DIALOG_LAYERS_SETUP::DIALOG_LAYERS_SETUP( WinEDA_PcbFrame* parent ) : ...@@ -265,15 +264,14 @@ DIALOG_LAYERS_SETUP::DIALOG_LAYERS_SETUP( WinEDA_PcbFrame* parent ) :
// these 3 controls are handled outside wxformbuilder so that we can add // these 3 controls are handled outside wxformbuilder so that we can add
// them without a sizer. Then we position them manually based on the column // them without a sizer. Then we position them manually based on the column
// widths from m_LayerListFexGridSizer->GetColWidths() // widths from m_LayerListFexGridSizer->GetColWidths()
m_NameStaticText = new wxStaticText( m_TitlePanel, -1, _("Name"), wxDefaultPosition, wxDefaultSize, 0 ); m_NameStaticText = new wxStaticText( m_TitlePanel, wxID_ANY, _("Name"), wxDefaultPosition, wxDefaultSize, 0 );
m_TitlePanel->AddChild( m_NameStaticText );
m_EnabledStaticText = new wxStaticText( m_TitlePanel, -1, _("Enabled"), wxDefaultPosition, wxDefaultSize, 0 ); m_EnabledStaticText = new wxStaticText( m_TitlePanel, wxID_ANY, _("Enabled"), wxDefaultPosition, wxDefaultSize, 0 );
m_TitlePanel->AddChild( m_NameStaticText );
m_TypeStaticText = new wxStaticText( m_TitlePanel, -1, _("Type"), wxDefaultPosition, wxDefaultSize, 0 ); m_TypeStaticText = new wxStaticText( m_TitlePanel, wxID_ANY, _("Type"), wxDefaultPosition, wxDefaultSize, 0 );
m_TitlePanel->AddChild( m_TypeStaticText );
// set the height of the title panel to be the size of any wxStaticText object
// plus 10 so we can have a border of 5 on both top and bottom.
m_TitlePanel->SetMinSize( wxSize( -1, m_AdhesFrontName->GetSize().y+10 ) ); m_TitlePanel->SetMinSize( wxSize( -1, m_AdhesFrontName->GetSize().y+10 ) );
Layout(); Layout();
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment