Thread: SVN Commit by dpage: r7552 - in trunk/pgadmin3/pgadmin: . ctl frm
Author: dpage Date: 2009-01-14 10:21:57 +0000 (Wed, 14 Jan 2009) New Revision: 7552 Revision summary: http://svn.pgadmin.org/cgi-bin/viewcvs.cgi/?rev=7552&view=rev Log: Add a hack to switch between the native and generic wxListCtrl on Mac. The native control has issues with multi-select when used on frmMain and by the autocomplete menu used by wxSTC. The generic control has sizing issues when used in the dialogues. These issues exist with wxWidgets <= 2.8.9 Modified: trunk/pgadmin3/pgadmin/ctl/ctlSQLBox.cpp trunk/pgadmin3/pgadmin/frm/frmMain.cpp trunk/pgadmin3/pgadmin/pgAdmin3.cpp
> Modified: > trunk/pgadmin3/pgadmin/ctl/ctlSQLBox.cpp I got compile error: ...ctlsqlbox.cpp(567) : error C2653: 'wxSystemOptions' : is not a class or namespace name ...ctlsqlbox.cpp(567) : error C3861: 'SetOption': identifier not found ...ctlsqlbox.cpp(575) : error C2653: 'wxSystemOptions' : is not a class or namespace name ...ctlsqlbox.cpp(575) : error C3861: 'SetOption': identifier not found wxWidgets 2.8.9 for windows with "#define wxUSE_SYSTEM_OPTIONS 1" include path: $(WXWIN)/include ( wx/sysopt.h is here. ) $(WXWIN)/contrib/include ... I tried to add the line: wxSystemOptions::SetOption(wxT("mac.listctrl.always_use_generic"), false); to wxWidgets project's cpp file, it's ok without compile error. How to correct my config? ----------------------------------------------- Quan Zongliang quanzongliang@gmail.com CIT Japan: http://www.cit.co.jp CIT China: http://www.citbj.com.cn
On Wed, Jan 14, 2009 at 11:10 AM, Quan Zongliang <quanzongliang@gmail.com> wrote: > >> Modified: >> trunk/pgadmin3/pgadmin/ctl/ctlSQLBox.cpp > > > I got compile error: > ...ctlsqlbox.cpp(567) : error C2653: 'wxSystemOptions' : is not a class or namespace name > ...ctlsqlbox.cpp(567) : error C3861: 'SetOption': identifier not found > ...ctlsqlbox.cpp(575) : error C2653: 'wxSystemOptions' : is not a class or namespace name > ...ctlsqlbox.cpp(575) : error C3861: 'SetOption': identifier not found Oops, sorry. Should be fixed now. -- Dave Page EnterpriseDB UK: http://www.enterprisedb.com