Search found 7 matches

by medusa1414
Tue Sep 10, 2019 7:57 am
Forum: Compiler / Linking / IDE Related
Topic: Make VS Code Intellisense work with wxwidgets
Replies: 2
Views: 173

Re: Make VS Code Intellisense work with wxwidgets

I ended up just editing the last else statement in setup.h (wxMSVC_VERSION) to minimize the effects of the change. Now intellisense works normal. Seems like its is impossible to undefine the predefined macros windows software uses. So i did it like this: #else #ifdef __INTELLISENSE__ #define wxCOMPI...
by medusa1414
Mon Sep 09, 2019 2:04 pm
Forum: Compiler / Linking / IDE Related
Topic: Make VS Code Intellisense work with wxwidgets
Replies: 2
Views: 173

Make VS Code Intellisense work with wxwidgets

Anyone made intellisense work with wxwidgets? I am using VS Code. Windows 7. wxWidgets 3.1.2 built with mingw. As mentioned, i use vs code. I am trying to make intellisense work with wxwidgets. The code compiles (using Makefile and g++) and runs fine, only a problem with code completion/hints. Simpl...
by medusa1414
Tue Feb 12, 2019 2:59 pm
Forum: C++ Development
Topic: wxTextCtrl EVT_TEXT_ENTER
Replies: 8
Views: 355

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: 355

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: 649

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: 649

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: 723

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 ...