Search found 9 matches

by RuudH
Sun Jun 21, 2020 3:09 am
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 474

Re: Using GUI member variables in a subclass

Separating the new audio module will not be a problem, because I will have to start from scratch with that. Removing the current one will need careful commenting out first, before final deletion. What I still cannot do (and what my small project was all about) is sharing the current gui in multiple ...
by RuudH
Sat Jun 20, 2020 2:05 pm
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 474

Re: Using GUI member variables in a subclass

I started coding in the 1990's. Mostly Free Pascal with Lazarus. Stopped, and now I have all the time in the world, picked it up again in February 2019. Created several apps; some in C# some in MFC, most in C++. Always had all code in the same class (for some reason I did not think any further). The...
by RuudH
Sat Jun 20, 2020 11:30 am
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 474

Re: Using GUI member variables in a subclass

Thank you very much. By now I have stared myself blind :-(. That's what happens when I try something new on the wrong path. I think I begin to understand what you are saying (my old retired brain needs some processing time :-) ). I am afraid to ask, but how does that reflect to my small project? Wha...
by RuudH
Sat Jun 20, 2020 9:56 am
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 474

Re: Using GUI member variables in a subclass

Thank you for being patient with me. What I like to achieve is the following: Create one gui window class that can be used in multiple subclasses. For example a mediaplayer. The main class handles the drag and drop of mp3 files into a listbox, and lots more. A second class handles all the functions ...
by RuudH
Sat Jun 20, 2020 8:52 am
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 474

Re: Using GUI member variables in a subclass

Thank you doublemax.

I tried your advice, but it shows a second window with the default slider2 value.
Moving the slider does not change the value (25).

Please see attached screenshot.
by RuudH
Sat Jun 20, 2020 6:05 am
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 474

Re: Using GUI member variables in a subclass

Hi, Thank you for your replies. I also tried: Test1 *t1; t1->VarTest(); This also compiles but the application crashes when accessing a gui member variable. I learned both methods in a course (albeit a very old one using Visual Studio 6). wxWidgets work differently I realize now (after pausing my ho...
by RuudH
Fri Jun 19, 2020 8:56 am
Forum: Compiler / Linking / IDE Related
Topic: Using GUI member variables in a subclass
Replies: 15
Views: 474

Using GUI member variables in a subclass

I created a Code::Blocks MinGW project on Windows 10 Pro to see if I could use a mmember variable in a sub class. This is the first time I created such a subclass (I only created ones without gui access needs) The gui is created with wxFormBuilder. The basic project consists of 3 element: GUIFrame; ...
by RuudH
Mon Jun 08, 2020 7:17 am
Forum: Compiler / Linking / IDE Related
Topic: No matching function for call to m_mediaCtrl->Create(...)
Replies: 1
Views: 104

No matching function for call to m_mediaCtrl->Create(...)

I like to add a player to an existing project after successfully creating a dedicated player in Code::Blocks (C++ with wxWidgets). I have added a class (PlayerWX.h + PlayerWX.cpp) to the existing project (File->New->Class...) with the default settings. The top-end in the .cpp is: #include "PlayerWX....
by RuudH
Thu Jun 04, 2020 7:29 am
Forum: General Development
Topic: First attempt creating a very simple mp3 player
Replies: 1
Views: 240

First attempt creating a very simple mp3 player

Hi, I am new to wxWidgets. Creating GUIs and apps with wxWidgets is good fun. Now I am attempting to add a very simple mp3 player to my C++ SQL database app (holding my music collection). I have been studying the Media Player sample, which is very helpful after I have taking the first hurdle. Please...