From 2197177140b8f4b6c6140b987b201ca1cfd3bf4d Mon Sep 17 00:00:00 2001 From: George Tasker Date: Tue, 28 Dec 2004 18:35:08 +0000 Subject: [PATCH] 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 --- samples/db/dbtest.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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)) { -- 2.45.2