Search found 5 matches

by medusa1414
Tue Feb 12, 2019 2:59 pm
Forum: C++ Development
Topic: wxTextCtrl EVT_TEXT_ENTER
Replies: 8
Views: 317

Re: wxTextCtrl EVT_TEXT_ENTER

Both of them respons to enter in my case. Multiline box doesnt add a new line.

I read this on the wiki now:
"Multiline wxTextCtrls do not support wxTE_PROCESS_ENTER, and should never get EVT_TEXT_ENTER events. The fact that this sometimes works on MSW is actually a (minor) bug. "
by medusa1414
Mon Feb 11, 2019 11:31 pm
Forum: C++ Development
Topic: wxTextCtrl EVT_TEXT_ENTER
Replies: 8
Views: 317

Re: wxTextCtrl EVT_TEXT_ENTER

I wrote this fully functional 1 file program example for you to show example usage of the "run a function when enter is pressed in the textbox"-function. Running Windows 7, wxWidgets 3.1.2. #include "wx/wxprec.h" #ifndef WX_PRECOMP # include "wx/wx.h" #endif #include <wx/artprov.h> #include <wx/xrc/...
by medusa1414
Thu Jan 24, 2019 8:42 pm
Forum: wxCode
Topic: wxFreeChart Program Stops Responding
Replies: 1
Views: 605

Re: wxFreeChart Program Stops Responding

Okey, i have found out that there is no code existing for any of the delete functions in wxFreeChart, the functions is only declared in the headers. I ended up rewriting my code and use the wxChartPanel->SetChart function on update instead. void mainFrame::updateData(wxCommandEvent& event) { wxDateT...
by medusa1414
Sun Jan 20, 2019 12:33 pm
Forum: wxCode
Topic: wxFreeChart Program Stops Responding
Replies: 1
Views: 605

wxFreeChart Program Stops Responding

Hello. I Try to update data in a XY chart. The program freezes/stops responding when i click the update button. Same with debug version, no error messages. The chart itself looks like this when i try to update it: https://i.imgur.com/oFOygXa.png If have tried all of these methods: void graph::getGra...
by medusa1414
Sun Apr 12, 2015 8:51 am
Forum: C++ Development
Topic: Access controls inside static functions?
Replies: 1
Views: 712

Access controls inside static functions?

Hello. I need to access dataList->InsertItem and dataList->SetItem inside the for loop MainFrame::callback function. How would i solve this? Since dataList is an object and can then not be accessed from static methods? I am using sqlite3. The sqlite3_exec callback function needs to be int. Cant get ...