Search found 64 matches

by marcusbarnet
Sun Mar 08, 2020 5:24 pm
Forum: C++ Development
Topic: Automatically change choices numbers in wxChoice
Replies: 1
Views: 95

Automatically change choices numbers in wxChoice

I load the content retrieved from a MySQL database to populate choices in several wxChoice controls. I display each record from the database as a choice for the wxchoice control and it works fine. The problem is that the number of records can increase and so it can exceed the number of default choic...
by marcusbarnet
Sun Mar 01, 2020 3:04 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 9
Views: 913

Re: WxWidgets 3.1, Windows, codeblocks and MySQL

Very useful!

Honestly, I was going to use SQLite3 even if I didn't like to have an embedded database, but the MySQL integration on Windows seemed to hard for me.

Thanks to that Youtube video, I was able to successfully integrate it in my code, so now I'm using it without problems!
by marcusbarnet
Sun Feb 16, 2020 9:59 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 9
Views: 913

Re: WxWidgets 3.1, Windows, codeblocks and MySQL

I will try to check again wxsqlite3 and how to install it on windows. I see that it uses databases in .db format: I never used it so I do not know how to populate the tables, is there an utility like phpmyadmin to manage the database?
by marcusbarnet
Sun Feb 16, 2020 9:38 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 9
Views: 913

Re: WxWidgets 3.1, Windows, codeblocks and MySQL

I'm creating the database from scratch so I can choose the architecture. I usually use Mysql with phpmyadmin but it's ok to use any other solution.

I checked wxSQLite3 but I wasnt able to use it correctly.

Is there any tutorial that can explain me how to install and use the wxdatabase?
by marcusbarnet
Sun Feb 16, 2020 7:58 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 9
Views: 913

Re: WxWidgets 3.1, Windows, codeblocks and MySQL

I'm still looking on google, but it's very hard to find a good document/tutorial.
by marcusbarnet
Sun Feb 16, 2020 7:26 pm
Forum: Database Related
Topic: WxWidgets 3.1, Windows, codeblocks and MySQL
Replies: 9
Views: 913

WxWidgets 3.1, Windows, codeblocks and MySQL

Hi to all, I'm having lot of problems in finding a way to connect to a MySQl database by using WxWdigets on Windows. On Linux, I use mysql++ library and everything works fine, but I can't figure out how to do it under Windows. I don't need to use exactly the same library, I just need to be able to r...
by marcusbarnet
Sun Jan 26, 2020 7:19 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error: wx/setup.h: No such file or directory
Replies: 5
Views: 265

Re: fatal error: wx/setup.h: No such file or directory

I already tried to use the wizard to create a new project, but I get always the same error! During the wizard, it says me that "a matching debug configuration cannot be found in the Wxwidget directory you specified" What does it mean? I didn't have all these problems on Unix! windows is really crazy...
by marcusbarnet
Sun Jan 26, 2020 6:12 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error: wx/setup.h: No such file or directory
Replies: 5
Views: 265

fatal error: wx/setup.h: No such file or directory

I'm trying to setup the environment to use WxWidgets on Windows by using Codeblocks. (I can successfully use WxWidgets in Ubuntu, but I do not use Microsoft Windows very often so I'm having hard time to correctly setup everything). I followed this guide: https://wiki.wxwidgets.org/CodeBlocks_Setup_G...
by marcusbarnet
Sun Nov 03, 2019 9:45 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 554

Re: Refresh panels in wxnotebook

Your suggestion solved the problem, thank you!

Is that a problem which can occurs only with some compilers/systems or it is a common problem when you cross the headers?
by marcusbarnet
Sun Nov 03, 2019 7:26 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 554

Re: Refresh panels in wxnotebook

I'm having a problem and I can't understand why! I was changing my code to fit your suggestions, I tried to compile it and I get this error: In file included from /home/isola/Documents/Isola02/Isola02Main.h:15:0, from /home/isola/Documents/Isola02/Isola02Main.cpp:10: /home/isola/Documents/Isola02/fi...
by marcusbarnet
Sun Oct 27, 2019 8:07 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 554

Re: Refresh panels in wxnotebook

I declared: firstpanel *first; secondpanel *second; as global in Isola02Main.cpp and then I specified a function in Isola02Frame.cpp: void Isola02Frame::panel_refresh(){ first->errore->Hide(); first->tessera->Clear(); } //secondpanel.cpp void secondpanel::OnBitmapButton1Click(wxCommandEvent& event) ...
by marcusbarnet
Sun Oct 27, 2019 7:59 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 554

Re: Refresh panels in wxnotebook

what is the best solution to reset every single controls and every single variable? All the panels are created in: //isola02Main.cpp Isola02Frame::Isola02Frame(const wxString& title) : wxFrame(NULL, wxID_ANY, title) { wxInitAllImageHandlers(); // Create a top-level panel to hold all the contents of ...
by marcusbarnet
Sun Oct 27, 2019 5:59 pm
Forum: C++ Development
Topic: Refresh panels in wxnotebook
Replies: 8
Views: 554

Refresh panels in wxnotebook

What is the best method to refresh panels in wxnotebook? My application flow let the user navigate from panel 1 to panel 3, at the end of the procedure, the user can load a new operation starting from panel 1. I would like to reload the first panel by clearing all the forms and all the values previo...
by marcusbarnet
Sat Oct 26, 2019 7:27 pm
Forum: C++ Development
Topic: How to play and stop mp3 asynchronously
Replies: 14
Views: 876

Re: How to play and stop mp3 asynchronously

doublemax, thank you a lot! I follwed you suggestion and now it works. I used the same pointer you told me to add during the creation of the panels last Sunday and I moved the functions to the main frame. // main class class Isola02Frame : public wxFrame { public: Isola02Frame(const wxString& title)...