Page 1 of 1
Simple way to display a notification?
Posted: Thu Jun 09, 2022 5:46 pm
by Hypex
Hello.
Womdering if there is a simple way to display a notification? I'm not intertested in anything fancy. Just being able to show a notice when my program loads.
The usual mechanism would be Ringhio. If it still does the job. But doesn't have its own library I can see.
I found application.library but it needs an app to be registered before it does anything. So, for just displaying a message and nothing else, does an app need to be registered with application.library and go through all the motions to do it?
Re: Simple way to display a notification?
Posted: Thu Jun 09, 2022 10:45 pm
by Raziel
I'm not on my miggy, so can't give you detailed instructions, but take a look at sys:documentation/ringhio/test_ringhio.rexx
It gives you the most simple script to display a notification with your personal message (and icon, if you want to).
Re: Simple way to display a notification?
Posted: Sat Jun 11, 2022 5:41 pm
by Hypex
Thanks. I actually did find that. Forgot to specify I'm writing in C.
To duplicate it, I would need to craft an Arexx message, then find and post it to the port in a Forbid. Both to register and then for message.
Given what's involved, I might as well do it cleanly, using the library. The only caveat is a bug in older versions. Would prefer one code block than can work on all versions. But no big deal if only modern one can be used to simplify it.
Re: Simple way to display a notification?
Posted: Sat Jun 11, 2022 11:28 pm
by Raziel
Ah sorry then.
Can't code myself, but maybe some if the wizards will step in?
Re: Simple way to display a notification?
Posted: Mon Jun 13, 2022 2:07 am
by Hypex
It seems pretty trivial. Just not as simple as using DOS or Intuition to display a requester. For a message to pass by the application library must be opened, an app must be registered and then finally a message can be displayed.
Re: Simple way to display a notification?
Posted: Tue Jul 26, 2022 6:51 pm
by xenic
I think the simplest method would be the "TimedDosRequester" function. Check it out in the DOS autodoc.
Re: Simple way to display a notification?
Posted: Mon Sep 12, 2022 4:32 am
by Hypex
xenic wrote: Tue Jul 26, 2022 6:51 pm
I think the simplest method would be the "TimedDosRequester" function. Check it out in the DOS autodoc.
I do actually use this as well but I reserve it for errors. But this is more in your face than a little notification in the corner. I ended up just registering an app to give a notification which worked fine after I ironed out the bugs.