What’s the smallest file size for a program the opens a photon window, does some IO (gfx or text) and allows the user to maybe make menu selections and quit via the close button? AND has the C++ source to show how it was done?
I figure a small file size is the result of a fairly small, self contained source file(s). Fingers crossed.
Well, if you want to use C++ a complete example (using standard QNX tools) would be fairly long. I do have a personal C++ class lib that (if it was used to create a similar app) would be comparable to the Java, perhaps even smaller (but non-portable).
If however, you want to step into the 90’s and use Java (he says ducking , here is a test app that does what you ask.
(please excuse the poor indentation, it is the wacky editor on this site)