Simple way to display a notification?

This forum is for general developer support questions.
Post Reply
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 543
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Simple way to display a notification?

Post 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?
User avatar
Raziel
Posts: 1124
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: Simple way to display a notification?

Post 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).
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 543
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Simple way to display a notification?

Post 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.
User avatar
Raziel
Posts: 1124
Joined: Sat Jun 18, 2011 4:00 pm
Location: a dying planet

Re: Simple way to display a notification?

Post by Raziel »

Ah sorry then.

Can't code myself, but maybe some if the wizards will step in?
People are dying.
Entire ecosystems are collapsing.
We are in the beginning of a mass extinction.
And all you can talk about is money and fairytales of eternal economic growth.
How dare you!
– Greta Thunberg
User avatar
Hypex
Beta Tester
Beta Tester
Posts: 543
Joined: Mon Dec 20, 2010 2:23 pm
Location: Vic. Australia.

Re: Simple way to display a notification?

Post 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.
Post Reply