Simon Ayers' YouTube RISC OS programming
Theo Markettos (89) 919 posts |
I came across a couple of videos on YouTube from Simon Ayers: https://www.youtube.com/playlist?list=PLVJalZPhgpY9K4lXhrxBLNr69FOuQMMjq Simon is a professional C++ programmer and returned to RISC OS after a long period away. He has an interesting perspective on what he found familiar and what caught him out. While it’s not a tutorial, he seems to have made good progress returning to RISC OS development and developing in C++. His (ongoing) goal: write a text editor that’s familiar to someone used to VS Code, rather than quirky RISC OS editors. |
Paolo Fabio Zaino (28) 1882 posts |
Dear Theo, |
GavinWraith (26) 1563 posts |
What Simon Ayers needs to look at for non-blocking error boxes in RISC OS is Adam Richardson’s MultiError application . Instead of having his own application go through the business of opening windows he should simply start up a separate wimp task, such as MultiError, to do the job. It can be used from any language that can access the commandline. See the definition of alert in lib.wimp.task in RiscLua: As this returns the taskhandle of the ancillary task you can have the main program send a kill message (0) to close it down at a time of the main task’s choosing.
|
Steffen Huber (91) 1953 posts |
I cannot see how farming a simple error window out to a separate WIMP task with all its annoying problems (when does it stop? how does it report an error? how to kill if my own app goes down?) can be regarded as the simpler solution compared to “open a window” (which your average WIMP app will have plenty of anyway). |
GavinWraith (26) 1563 posts |
You may well be right. The window provided by MultiError has a button to close it, of course. |