News for hackers. Stuff that matters.
Re:So you want to write a GUI framework by feikname on Wednesday August 11, 2021 @01:49PM (#28145269)
One of my favorite offline "classic" programs of all time is.. Microsoft WordPad.

It's by no means great, but it's so lightweight and gets off your way that it puts modern online Microsoft Word and Google Dpcs to shame with its mere 16MB memory usage for simple documents.

I wish more apps did that, even if they looked like a Windows app inside macOS or vice-versa

I wonder if releasing a new framework that doesnt try to look native but still tries to make flow for each OS optmized (e.g. allows to choose file picker between native and own) would be a resonable alternative to electron. Perhaps even with JS support so the gazilliins libraries out there arent totally lost.

Re:So you want to write a GUI framework by anigbrowl on Wednesday August 11, 2021 @03:24PM (#28146505)
Oh I love it. I use Libreoffice for Calc which is good-enough and still open source, but Write is a horrible word processing experience. For text alone it's just aesthetically dissatisfying but as soona s you need to include pictures it's an active barrier to productivity. More than once I've spent hours fuming over a Write document with a looming deadline, then thrown it away and started from scratch in Wordpad and finished with time to spare.
Re:So you want to write a GUI framework by dfox on Wednesday August 11, 2021 @02:31PM (#28145827)
I somewhat suspect that WordPad is the only MS application that actually follows all the MS recommendations about usage of Win32 API and Windows HIG/UX.
Re:So you want to write a GUI framework by happyweasel on Wednesday August 11, 2021 @02:47PM (#28146031)
It's written in MFC, and the sourcecode is on github (https://github.com/microsoft/VCSamples/tree/master/VC2010Sam...)
Re:So you want to write a GUI framework by pjmlp on Thursday August 12, 2021 @02:38AM (#28152763)
Going a bit on the side track over here, due to MFC being mentioned.

Given the current state of C++/WinRT tooling, even the aging MFC is more productive for Windows applications.

It doesn't matter it isn't modern C++, is full of CWhaterver, it is still more than good enough for those use cases where .NET isn't an option for whatever reason and C++ must be used.

Re:So you want to write a GUI framework by homarp on Wednesday August 11, 2021 @05:15PM (#28147853)
"The WordPad sample demonstrates how to implement an application that imitates the functionality of WordPad, including the user interface elements and some of the capabilities." per the readme
Re:So you want to write a GUI framework by happyweasel on Thursday August 12, 2021 @02:14AM (#28152597)
Ah! thanks for clarifying