Search found 134 matches

by ouch67
Mon Jul 30, 2018 2:06 am
Forum: C++ Development
Topic: Anyone know how to make something like an inverted listbox?
Replies: 4
Views: 307

Re: Anyone know how to make something like an inverted listbox?

But if the control if bigger than the list of items there is a gap at the bottom. And there will be scroll bars yes.
by ouch67
Sun Jul 29, 2018 6:02 pm
Forum: C++ Development
Topic: Anyone know how to make something like an inverted listbox?
Replies: 4
Views: 307

Anyone know how to make something like an inverted listbox?

So I'm trying to figure out a way to make a wxlistbox or wxListCtrl or any list-ish control that can be inverted so that the top of the control is the bottom. What I want to do is create two controls full of numbers. The bottom control is sorted ascending and the smallest number appears on top like ...
by ouch67
Thu Jul 26, 2018 6:59 pm
Forum: wxCode
Topic: wxSQLIte3 from sources...
Replies: 13
Views: 2756

Re: wxSQLIte3 from sources...

I noticed your using direct directory references in CodeBlocks. You should really avoid doing that and use global variables instead. This insures all the project files, libraries and other necessary things will be found on any computer no matter where the files get installed or what operating system...
by ouch67
Thu Jul 26, 2018 6:37 pm
Forum: wxCode
Topic: wxSqlite3 and Creating Virtual tables...
Replies: 3
Views: 660

Re: wxSqlite3 and Creating Virtual tables...

Ah, I see. Thanks to you both.
by ouch67
Thu Jul 26, 2018 9:39 am
Forum: wxCode
Topic: wxSqlite3 and Creating Virtual tables...
Replies: 3
Views: 660

wxSqlite3 and Creating Virtual tables...

What is the best way to create a table that say consists of 3 columns: Name char, Price real, Qty real I don't see where this could be done using wxSqlite3 unless I'm missing something. (I probably am, ;) ) I just want to create a table that I can use but doesn't actually get saved. Is there a bette...
by ouch67
Wed Jul 25, 2018 2:27 pm
Forum: wxCode
Topic: Does wxCharts not support mingw?
Replies: 3
Views: 689

Re: Does wxCharts not support mingw?

I tried that and it doesn't work. It seems the makefile is calling wx-config inline with compiler options.
by ouch67
Mon Jul 23, 2018 12:32 pm
Forum: wxCode
Topic: Does wxCharts not support mingw?
Replies: 3
Views: 689

Does wxCharts not support mingw?

I can't seem to find a makefile in their github that will build it?

The makefilegnu that they have looks for wx-config which of course doesn't exist on windows.
by ouch67
Mon Jul 02, 2018 5:18 pm
Forum: Compiler / Linking / IDE Related
Topic: Not intalled wxWidgets3.1.1 [HELP]
Replies: 4
Views: 545

Re: Not intalled wxWidgets3.1.1 [HELP]

Yeah, as someone who used to use TDM-gcc I can confirm that switching to MinGW-w64 is definitely worth the trouble. I had some strange issues with the latest version of tdm-gcc that were never resolved as well (seemed like a tool chain bug). These went away when I switched to the latest MinGW-w64, s...
by ouch67
Thu Jun 14, 2018 7:29 pm
Forum: wxCode
Topic: wxSqlite3 requires sqlite3secure.h?
Replies: 3
Views: 737

Re: wxSqlite3 requires sqlite3secure.h?

So what is the recommended way to build wxSqlite3 statically without creating encrypted database files these days then?

Or is it recommended not to do that anymore?
by ouch67
Tue Jun 12, 2018 5:53 pm
Forum: wxCode
Topic: wxSqlite3 requires sqlite3secure.h?
Replies: 3
Views: 737

wxSqlite3 requires sqlite3secure.h?

I'm trying to update my rather old version of wxsqlite3. It's stopping saying that sqlite3secure.h is required. I see the include for that file is not gated behind any if statements. Is that right? I'm trying to build with these variables defined: wxUSE_DYNAMIC_SQLITE3_LOAD=0 WXSQLITE3_HAVE_METADATA...
by ouch67
Wed Dec 18, 2013 11:41 pm
Forum: wxCode
Topic: wxSQLite3 passing database pointer support?
Replies: 7
Views: 3401

Re: wxSQLite3 passing database pointer support?

I got it figured out. Turns out it's a good idea to make sure your passing your pointers to a valid variable... lol Basically there was a public variable in a class that was supposed to receive the pointer but it wasn't fully initialized by the time the database pointer was sent to it. Thanks for th...
by ouch67
Tue Dec 17, 2013 8:24 pm
Forum: wxCode
Topic: wxSQLite3 passing database pointer support?
Replies: 7
Views: 3401

Re: wxSQLite3 passing database pointer support?

Well I tried your code and I don't see a message box either, so apparently it's crashing before wxSqlite3 takes over but the crash is on that line. Hmm...
by ouch67
Mon Dec 16, 2013 11:20 pm
Forum: wxCode
Topic: wxSQLite3 passing database pointer support?
Replies: 7
Views: 3401

Re: wxSQLite3 passing database pointer support?

What is the best way to catch an wxSQLite3 exception? I tried: try { ResultTable = dbs->GetTable("select Name from TABLE;"); } catch(int e) { wxMessageBox(wxSQLite3Exception::ErrorCodeAsString(e)); } But no error message came up so I assume nothing was thrown?
by ouch67
Sat Dec 14, 2013 12:05 am
Forum: wxCode
Topic: wxSQLite3 passing database pointer support?
Replies: 7
Views: 3401

wxSQLite3 passing database pointer support?

I'm getting problems when trying to the pointer of my already opened database to another window. I'm just using similar code to this: wxSQLite3Database* newdb; wxSQLite3Database olddb; newdb = &olddb; wxSQLite3Table ResultTable; ResultTable = newdb->GetTable("select Name from TABLE;"); I get a crash...
by ouch67
Fri Feb 22, 2013 10:16 am
Forum: General Development
Topic: Handling key down events between multiple objects
Replies: 1
Views: 2122

Handling key down events between multiple objects

So I know this gets asked a lot but i couldn't find an answer for my specific needs. So I have have 2 wxgrid objects on a frame. Each grid has it's own copy and paste keyboard shortcuts. These are needed so that you copy and paste from the correct wxgrid. These work great, however now I want to add ...