X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/e1c6c6aede1a66cad8444b555d5f763235b21a35..58b434187d33cd8a0130cea5f2b3e4a226875f95:/contrib/src/gizmos/editlbox.cpp?ds=sidebyside diff --git a/contrib/src/gizmos/editlbox.cpp b/contrib/src/gizmos/editlbox.cpp index 8d62afc86d..4617028570 100644 --- a/contrib/src/gizmos/editlbox.cpp +++ b/contrib/src/gizmos/editlbox.cpp @@ -122,11 +122,13 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id, m_bUp = new wxBitmapButton(subp, wxID_ELB_UP, wxBitmap(elup_xpm)); m_bDown = new wxBitmapButton(subp, wxID_ELB_DOWN, wxBitmap(eldown_xpm)); +#if wxUSE_TOOLTIPS m_bEdit->SetToolTip(wxT("Edit item")); m_bNew->SetToolTip(wxT("New item")); m_bDel->SetToolTip(wxT("Delete item")); m_bUp->SetToolTip(wxT("Move up")); m_bDown->SetToolTip(wxT("Move down")); +#endif subsizer->Add(m_bEdit, 0, wxALIGN_CENTRE_VERTICAL); subsizer->Add(m_bNew, 0, wxALIGN_CENTRE_VERTICAL); @@ -143,7 +145,7 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id, wxDefaultPosition, wxDefaultSize, wxLC_REPORT | wxLC_NO_HEADER | wxLC_SINGLE_SEL | wxSUNKEN_BORDER | - wxLC_EDIT_LABELS); + wxLC_EDIT_LABELS); wxArrayString empty_ar; SetStrings(empty_ar); @@ -151,7 +153,7 @@ wxEditableListBox::wxEditableListBox(wxWindow *parent, wxWindowID id, SetAutoLayout(TRUE); SetSizer(sizer); - Layout(); + Layout(); } void wxEditableListBox::SetStrings(const wxArrayString& strings)