From: George Tasker Date: Tue, 28 Dec 2004 18:35:08 +0000 (+0000) Subject: Lookup result windows now force the first column size to be no great than 20 characte... X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/2197177140b8f4b6c6140b987b201ca1cfd3bf4d Lookup result windows now force the first column size to be no great than 20 characters to avoid the code that calls the DB to find the length of the longest string in column, as the code used to get that value is not necessarily portable across all DB platforms git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@31173 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/samples/db/dbtest.cpp b/samples/db/dbtest.cpp index 56254c6a8f..15c1398bef 100644 --- a/samples/db/dbtest.cpp +++ b/samples/db/dbtest.cpp @@ -1452,7 +1452,8 @@ void CeditorDlg::OnCommand(wxWindow& win, wxCommandEvent& WXUNUSED(event)) /* const wxString &orderBy */ wxT("NAME"), /* wxDb *pDb */ wxGetApp().READONLY_DB, /* const wxString &defDir */ wxGetApp().DbConnectInf->GetDefaultDir(), - /* bool distinctValues*/ true); + /* bool distinctValues*/ true, + wxEmptyString, 20); if (ListDB_Selection && wxStrlen(ListDB_Selection)) {