wxALIGN_CENTER cannot be used under wxStaticBoxSizer?

This forum can be used to talk about general design strategies, new ideas and questions in general related to wxWidgets. If you feel your questions doesn't fit anywhere, put it here.
Post Reply
craks
Knows some wx things
Knows some wx things
Posts: 29
Joined: Wed Jan 05, 2005 3:26 am

wxALIGN_CENTER cannot be used under wxStaticBoxSizer?

Post by craks » Sat May 07, 2005 7:08 am

if i use wxBoxSizer, all is ok, but wxStaticBoxSizer takes no affect?

Code: Select all

    wxStaticBoxSizer *sizer = new wxStaticBoxSizer(wxHORIZONTAL, this, _("Test"));
    sizer->Add(mSearchCriteriaTextCtrl, 0, wxALL | wxALIGN_CENTER, 5);
    sizer->Add(mSearchButton, 0, wxRIGHT | wxTOP | wxBOTTOM, 5);


Post Reply