Search found 72 matches

by bcteh
Tue Dec 04, 2012 2:22 pm
Forum: C++ Development
Topic: Is wxDataViewListCtrl memory leak when use wxClientData*
Replies: 1
Views: 1238

Is wxDataViewListCtrl memory leak when use wxClientData*

Hi, When use the method AppendItem with wxClientData/wxUIntPtr it clause an memory leak. I am not familiar with wxDataViewListCtrl , may be i use this method incorrectly . What is the different between wxUIntPtr and wxClientData ? At version 2.8, i use wxCleintdata .. eg: wxDataViewListCtrl* lc = ne...
by bcteh
Fri Nov 23, 2012 4:57 am
Forum: C++ Development
Topic: Loop wxString remove char
Replies: 1
Views: 1112

Loop wxString remove char

Hi, Why this function cause an error on release mode ? Error Message: "*** Caught unhandled unknow exception; terminating" ? Is this related to thread ? I put the function in wxThread, it sometime cause above error , but work perfectly in main gui thread. Please help .. wxString Parserer::...
by bcteh
Thu Nov 22, 2012 5:34 pm
Forum: C++ Development
Topic: GridCellEditor: event handler assertion on exit
Replies: 1
Views: 1503

Re: GridCellEditor: event handler assertion on exit

Something related to
wxGridCellAttr *attr = this->GetOrCreateCellAttr(0, 1);

attr->DecRef(); --> add this

theory i don't know [-X .. i faced the same error before
by bcteh
Mon Nov 12, 2012 7:35 pm
Forum: C++ Development
Topic: Error wxGrid on version 2.94
Replies: 3
Views: 1595

Re: Error wxGrid on version 2.94

Hi, After try to modified the wxwidget sample program(auidemo) to show the bug. I found the problem already. For version 2.8.11, it allow me to share wxGridCellAttr between columns. but for 2.9.4, i need to increase the ref count. wxGrid* MyFrame::CreateGrid() { wxGrid* grid = new wxGrid(this, wxID_...
by bcteh
Mon Nov 12, 2012 6:48 pm
Forum: C++ Development
Topic: Error wxGrid on version 2.94
Replies: 3
Views: 1595

Re: Error wxGrid on version 2.94

Hi,

i append the row dynamically in program.
gridParam->AppendRows(1);
It happen to all screen that use the grid.

Regards
Teh
by bcteh
Mon Nov 12, 2012 2:09 pm
Forum: C++ Development
Topic: Error wxGrid on version 2.94
Replies: 3
Views: 1595

Error wxGrid on version 2.94

Hi, Just migrate application from wxWidget 2.8.11 to wxWidgets 2.9.4. I found that the application is crash when destroy wxgrid. On 2.8.11 it work. grid.cpp ======= // if we own the table, just delete it, otherwise at least don't leave it // with dangling view pointer if ( m_ownTable ) delete m_tabl...
by bcteh
Fri Nov 02, 2012 3:33 pm
Forum: C++ Development
Topic: wxKeyBinder on wxWidgets 2.9.4
Replies: 1
Views: 985

Re: wxKeyBinder on wxWidgets 2.9.4

The sample program work without error. The is an conflict between wxAuiManager. After commented ~wxAUI_MGR_LIVE_RESIZE , it work perfectly :lol: unsigned int flags = m_mgr.GetFlags(); flags |= wxAUI_MGR_ALLOW_ACTIVE_PANE; flags |= wxAUI_MGR_TRANSPARENT_HINT; //flags |= ~wxAUI_MGR_LIVE_RESIZE; m_mgr....
by bcteh
Wed Oct 31, 2012 5:14 pm
Forum: C++ Development
Topic: wxKeyBinder on wxWidgets 2.9.4
Replies: 1
Views: 985

wxKeyBinder on wxWidgets 2.9.4

Hi, I try to migrate my application from wxWidgets 2.8.11 to 2.9.4. I face problem on wxKeyBinder (from wxCode project). It show the assert error, ..\..\src\common\wincmn.cpp(468): assert "GetEventHandler() == this" failed in wxWindowBase::~wxWindowBase(): any pushed event handlers must ha...
by bcteh
Mon Oct 22, 2012 2:33 pm
Forum: C++ Development
Topic: Again wx2.94 - wxString to WCHAR*
Replies: 2
Views: 1712

Again wx2.94 - wxString to WCHAR*

Hi, How to convert wxString to wchar_t* ? I found the post http://forums.wxwidgets.org/viewtopic.php?t=28482&p=121932 The solution is using wchar_str(). I check on Vision Studio 2005 watch variable, the conversion data is corrupted. wchar_t *kk = L"Yes"; wxString yy("Yes"); w...
by bcteh
Tue Feb 28, 2012 4:27 pm
Forum: C++ Development
Topic: wxShapeFramework : serialize
Replies: 3
Views: 2156

Re: wxShapeFramework : serialize

The wxShapeFramework have existing functionality to serialize the Shape properties. For example: To serialize the table name: XS_SERIALIZE_STRING(m_tablename,wxT("tablename"); When i save the diagram, All the properties of the shape is save automatically into xml file. I would like to use ...
by bcteh
Tue Feb 28, 2012 8:56 am
Forum: C++ Development
Topic: wxShapeFramework : serialize
Replies: 3
Views: 2156

wxShapeFramework : serialize

Hi I am testing for make an query builder by using wxShapeFramework. http://www.tncas.com/images/querybuilder.png Everything work fine. Now face the problem to serialize the list items. The table and field name , is used "class QBListBox : public wxSFRectShape" to draw it as wxCheckListBox...
by bcteh
Wed Feb 22, 2012 4:04 am
Forum: Compiler / Linking / IDE Related
Topic: Common problem: no 'wxClassInfo* GetClassInfoW() const
Replies: 1
Views: 1448

Common problem: no 'wxClassInfo* GetClassInfoW() const

Hi I use the sample code from http://utmostlogic.wordpress.com/tag/wxwidgets/ Idle Activity Detection ( idledetector.h and idledetector.cpp). but encounter this error: error: no 'wxClassInfo* IdleDetectorEvent::GetClassInfoW() const' member function declared in class 'IdleDetectorEvent' Still can't ...
by bcteh
Tue Jan 10, 2012 3:41 pm
Forum: C++ Development
Topic: Re: wxSTC: Writing custom Autocomplete Box
Replies: 9
Views: 3533

Re: wxSTC: Writing custom Autocomplete Box

The listbox is located at platwx.cpp. I try to implement send out the event when list item is selected. EVT_STC_LISTITEM_SELECTED(-1,TextCtrl::AutoCompleteListSelected) BEGIN_EVENT_TABLE(wxSTCListBoxWin, wxWindow) EVT_SET_FOCUS ( wxSTCListBoxWin::OnFocus) EVT_SIZE ( wxSTCListBoxWin::OnSize) EVT_LIST...