Search found 71 matches

by marcusbarnet
Sat May 16, 2020 8:01 pm
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 1819

Re: Scrollbar appears in the panel but doesn't work

Thank you, PB!

I studied your example and I was able to integrate your code into my project.

Now also my panels have a working scrollbar!
by marcusbarnet
Sun May 10, 2020 5:20 pm
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 1819

Re: Scrollbar appears in the panel but doesn't work

I'm sorry PB, I didn't see your post because I didn't received the forum notification and I struggled all this week to find out how to add the scrollbar to my project. I read your topic and I'm studying your solution in order to understand if I can adapt it to my solution. I spent two hours so far b...
by marcusbarnet
Sun May 03, 2020 4:17 pm
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 1819

Re: Scrollbar appears in the panel but doesn't work

I do not know if it makes any difference, but I'm using codeblocks on Windows with WxSmith.
by marcusbarnet
Sun May 03, 2020 4:01 pm
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 1819

Re: Scrollbar appears in the panel but doesn't work

I add each page by using the standard AddPage function from wxBookCtrlBase in this way: notebook = new wxSimplebook(this, wxID_ANY); first = new firstpanel(notebook, this, wxID_ANY); notebook->AddPage(first, L"first panel"); second = new secondpanel(notebook, this, wxID_ANY); notebook->Add...
by marcusbarnet
Sun May 03, 2020 2:00 pm
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 1819

Re: Scrollbar appears in the panel but doesn't work

It isn't working and, to be honest, now the scrollbars didn't appear anymore in the panel. May be the problem is related to the wxpanel implementation. main app file: bool PumpApp::OnInit() { bool wxsOK = true; wxInitAllImageHandlers(); if ( wxsOK ) { PumpFrame* Frame = new PumpFrame(0); pointer = F...
by marcusbarnet
Sun May 03, 2020 11:45 am
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 1819

Re: Scrollbar appears in the panel but doesn't work

I'm going to modify my code to reflect your suggestions and I will come back soon.

do you think I have to add the scrollbars to each panel or only to the panel where I need it?
by marcusbarnet
Sun May 03, 2020 10:29 am
Forum: C++ Development
Topic: Scrollbar appears in the panel but doesn't work
Replies: 12
Views: 1819

Scrollbar appears in the panel but doesn't work

I would like to add a scrollbar to one of my panels (I'm using wxSimplebook to add panels to my main frame). The problem is that the vertical and horizontal scrollbars appear, but nothing happens when I scroll them (they move, but the content inside the frame doesn't change). This is my code: // sec...
by marcusbarnet
Sun Mar 08, 2020 5:24 pm
Forum: C++ Development
Topic: Automatically change choices numbers in wxChoice
Replies: 1
Views: 510

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

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

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

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

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

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 9:18 pm
Forum: Compiler / Linking / IDE Related
Topic: fatal error: wx/setup.h: No such file or directory
Replies: 5
Views: 3488

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

It seems to work now, thank you a lot!
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: 3488

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