fix visual artifact in wxMSW (why does it happen?)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@14240 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
parent
dbc38199c0
commit
923d52d6fe
@ -130,11 +130,20 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id,
|
|||||||
m_bDown->SetToolTip(wxT("Move down"));
|
m_bDown->SetToolTip(wxT("Move down"));
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
subsizer->Add(m_bEdit, 0, wxALIGN_CENTRE_VERTICAL);
|
#ifdef __WXMSW__
|
||||||
subsizer->Add(m_bNew, 0, wxALIGN_CENTRE_VERTICAL);
|
#define BTN_BORDER 4
|
||||||
subsizer->Add(m_bDel, 0, wxALIGN_CENTRE_VERTICAL);
|
// FIXME - why is this needed? There's some reason why sunken border is
|
||||||
subsizer->Add(m_bUp, 0, wxALIGN_CENTRE_VERTICAL);
|
// ignored by sizers in wxMSW but not in wxGTK that I can't
|
||||||
subsizer->Add(m_bDown, 0, wxALIGN_CENTRE_VERTICAL);
|
// figure out...
|
||||||
|
#else
|
||||||
|
#define BTN_BORDER 0
|
||||||
|
#endif
|
||||||
|
|
||||||
|
subsizer->Add(m_bEdit, 0, wxALIGN_CENTRE_VERTICAL | wxTOP | wxBOTTOM, BTN_BORDER);
|
||||||
|
subsizer->Add(m_bNew, 0, wxALIGN_CENTRE_VERTICAL | wxTOP | wxBOTTOM, BTN_BORDER);
|
||||||
|
subsizer->Add(m_bDel, 0, wxALIGN_CENTRE_VERTICAL | wxTOP | wxBOTTOM, BTN_BORDER);
|
||||||
|
subsizer->Add(m_bUp, 0, wxALIGN_CENTRE_VERTICAL | wxTOP | wxBOTTOM, BTN_BORDER);
|
||||||
|
subsizer->Add(m_bDown, 0, wxALIGN_CENTRE_VERTICAL | wxTOP | wxBOTTOM, BTN_BORDER);
|
||||||
|
|
||||||
subp->SetAutoLayout(TRUE);
|
subp->SetAutoLayout(TRUE);
|
||||||
subp->SetSizer(subsizer);
|
subp->SetSizer(subsizer);
|
||||||
|
Loading…
Reference in New Issue
Block a user