SyntaxBoom

General Category => General Game and Application Development => Topic started by: Jackdaw on Jul 26, 2025, 05:25 PM

Title: wxWidgets and a dark future
Post by: Jackdaw on Jul 26, 2025, 05:25 PM
People have been asking for wxWidgets dark mode on windows for sometime now. With the release of the development branch v3.3.0.
It's finally arrived.

Whether it will be any good and stable when 3.4 is release remains to be seen. Microsoft doesn't look like they have any plans to update the Win32 API to support dark mode. And what hacks MS have used to get some of the original applications to use dark mode have not been documented, and my change in the future.

There are a number of projects that I had been working on, but put on hold until they get it sorted out.
Title: Re: wxWidgets and a dark future
Post by: MikeHart on Aug 02, 2025, 07:10 PM
Hui, that sounds good. Do they look more modern these days? Back in the day they kinda looked old school to me, but then I didn't had an intensive check.
Title: Re: wxWidgets and a dark future
Post by: MikeHart on Aug 02, 2025, 07:32 PM
Mmmh, had a look at the wxwidgets site. I like the look of this example very much.

https://wxwidgets.org/about/screenshots/#coppercube-1
Title: Re: wxWidgets and a dark future
Post by: MikeHart on Aug 02, 2025, 07:36 PM
Ìs there any WX blitzmax module, that is in a current state, available somethere?
Title: Re: wxWidgets and a dark future
Post by: Jackdaw on Aug 03, 2025, 08:28 AM
Quote from: MikeHart on Aug 02, 2025, 07:36 PMÌs there any WX blitzmax module, that is in a current state, available somethere?
The only one I know of is here (https://github.com/maxmods/wx.mod).
Title: Re: wxWidgets and a dark future
Post by: Dabzy on Aug 03, 2025, 08:39 AM
I use wxMax for Launchpad, mostly for its wxScintilla sub-module, it's very old like, and there is a few bugs I've met up with while developing it, more so with Win11 where stuff behind the scenes have seemed to change and broken it... I've got over them in some cases, but be prepared to put up with a fight if your going to create a big app with it because quite a few times I've nearly just dumped it and moved over to C++, but the amount of work I put in beforehand stopped me from doing so really.

So, all in all, it works, but as rickety as hell.

Dabz
Title: Re: wxWidgets and a dark future
Post by: Jackdaw on Aug 03, 2025, 09:05 AM
Quote from: MikeHart on Aug 02, 2025, 07:32 PMMmmh, had a look at the wxwidgets site. I like the look of this example very much.

https://wxwidgets.org/about/screenshots/#coppercube-1
I suspect that either it's running on a Linux system, or using custom icons.
Title: Re: wxWidgets and a dark future
Post by: Jackdaw on Aug 03, 2025, 09:53 AM
Quote from: Dabzy on Aug 03, 2025, 08:39 AMI use wxMax for Launchpad, mostly for its wxScintilla sub-module, it's very old like, and there is a few bugs I've met up with while developing it, more so with Win11 where stuff behind the scenes have seemed to change and broken it... I've got over them in some cases, but be prepared to put up with a fight if your going to create a big app with it because quite a few times I've nearly just dumped it and moved over to C++, but the amount of work I put in beforehand stopped me from doing so really.

So, all in all, it works, but as rickety as hell.

Dabz
I've just tried wx.mod on Linux with BlitzMax-NG. The module will not even build with the bcc 0.138 and bmx 3.53. Fix one thing and it breaks another. The issue with it as far as I can see is that the compiler has issues with determining function return types. It doesn't help that people have been adding fixes without fully testing that those fixes are going to work across all platforms. Which is why I had to hack the C and Objective-C sources to get just the basic stuff to work on the latest macOS and xcode 15, because someone decided to add a compiler switch instead of fixing the code.

The module may work with a later version, but I'm not going to even bother.

In my opinion, without a dedicated team and funding to keep BlitzMax-NG going. Using BlitzMax/BlitzMax-NG is just flogging a dead horse.

Periodically. I'll play around with Lazarus, but I wouldn't rely on it to create commercial  software. It's taken nearly twenty years for it to be almost usable, and even then it's still buggy has hell.
Title: Re: wxWidgets and a dark future
Post by: MikeHart on Aug 03, 2025, 11:02 AM
Thanks for the input guys. Frustrating but it is what it is.
Title: Re: wxWidgets and a dark future
Post by: Dabzy on Aug 03, 2025, 12:13 PM
@Jackdaw

See, the thing is, I've still got an old copy of BlitzMax-NG, in fact, I have 2, both for different projects, because like you say, people have tangled it, and only real updates come in the form of the more popular modules such as Max2D!

What BlitzMax-NG on GIT needs is a totally skinning back to it's "Game related" basics really, and not even bother with other mods, let users add themselves, share if they want to, but... It defo needs a clean up like, it's a bit of a mess in its current form.

Dabz
Title: Re: wxWidgets and a dark future
Post by: Jackdaw on Aug 03, 2025, 06:56 PM
Quote from: Dabzy on Aug 03, 2025, 12:13 PMWhat BlitzMax-NG on GIT needs is a totally skinning back to it's "Game related" basics really, and not even bother with other mods,
If anything. It needs to be written from scratch again. And not using BlitzMax as the bootstrap, but a common free compiler that can be used for a bootstrap.

The main reason that the Monkey-X C++ sources are on github, was because I made the suggestion to Mark that it was pointless just putting the Monkey source files up if someone has to go looking for a binary to build them that may not exist in the future.
Title: Re: wxWidgets and a dark future
Post by: Dabzy on Aug 03, 2025, 07:01 PM
@Jackdaw

Very true!!!

Dabz
Title: Re: wxWidgets and a dark future
Post by: MikeHart on Aug 04, 2025, 04:39 PM
So I take from you two that bmx ng isn't in a worthwhile state. I was really hoping for it.
Title: Re: wxWidgets and a dark future
Post by: MikeHart on Aug 04, 2025, 04:41 PM
BTW how did you come to this conclusion? Actively working with it on projects?
Title: Re: wxWidgets and a dark future
Post by: Dabzy on Aug 04, 2025, 05:29 PM
Well, for me, it is probably usable on windows, but it will all depend on what your doing with it... For a Windows game, yes, good to go more then likely, but if you need to venture into the likes of MaxMods and other third party mods, your talking roulette time if something will build or not.

And again, I use 2 old versions, because some of the mods I need worked on one install of it, try the same on another and it just blows up, and vice versa.

I havent even tried new BlitzMax-NG updates because I simply think none of them will work anymore on my projects.

Hence my suggestion of a clear out and start again, there's loads of resources, but many are simply past being usable and you get hit with a wall of build errors, and it's all a bit of a module hell.

Dabz
Title: Re: wxWidgets and a dark future
Post by: Jackdaw on Aug 04, 2025, 06:05 PM
Quote from: MikeHart on Aug 04, 2025, 04:39 PMSo I take from you two that bmx ng isn't in a worthwhile state. I was really hoping for it.
Let's say that I wouldn't be investing time or effort developing anything serious with it.

Quote from: MikeHart on Aug 04, 2025, 04:41 PMBTW how did you come to this conclusion?
First by how much of a pain in the arse it's going to be to setup and use. On Windows, not much trouble. On Linux, you have to create a system link to a GTK library. And on macOS....

Well macOS that's the big one, and that depends on:

On my iMac M4, running macOS Sequoia and xcode 16.2. I had to build it from scratch, with adding my own fixes to get it to build. Debugging is iffy, and the base Max2D stuff appears to work still, but I suspect that it still using the last OpenGL that Apple supported. As for MaxGUI, that is a lost cause. Unless it gets a big update.

The second thing is "How often is it updated". All you have to do is look at the github sources to answer that question.

The third is that the documentation is all over the place and not very clear. And for support, other than the Discord channel and github issues tracker, there isn't much else.
Title: Re: wxWidgets and a dark future
Post by: MikeHart on Aug 04, 2025, 06:17 PM
Thanks Jason for the info.
Title: Re: wxWidgets and a dark future
Post by: Baggey on Aug 04, 2025, 06:18 PM
Quote from: Jackdaw on Aug 03, 2025, 06:56 PMIf anything. It needs to be written from scratch again. And not using BlitzMax as the bootstrap, but a common free compiler that can be used for a bootstrap.
Im doing this  :-X
Title: Re: wxWidgets and a dark future
Post by: Jackdaw on Aug 04, 2025, 06:23 PM
Quote from: MikeHart on Aug 04, 2025, 06:17 PMThanks Jaspn for the info.
No problems Mike. Brucey did his best with BlitzMax-NG, but he's only one man that tried, or still trying to keep it afloat. As I stated in the previous post. It really needs a dedicated team and funding to try keep it up to date and cross platform.
Title: Re: wxWidgets and a dark future
Post by: Jackdaw on Aug 04, 2025, 06:33 PM
Quote from: Baggey on Aug 04, 2025, 06:18 PM
Quote from: Jackdaw on Aug 03, 2025, 06:56 PMIf anything. It needs to be written from scratch again. And not using BlitzMax as the bootstrap, but a common free compiler that can be used for a bootstrap.
Im doing this  :-X
I was thinking of something similar. Using java and ANTLR4 (https://www.antlr.org/). The real fun bit with ANTLR is trying to write the grammar files.