Windows 10 Notifications
Posted: Fri Jan 05, 2018 12:31 pm
Please implement the Windows 10 Notifications (Info Center).
The Cross-Platform Multimedia Application Layer
https://forums.hollywood-mal.com/
Ringhio on OS4 is easy:jPV wrote:Or make it more generic and support also Magic Beacon on MorphOS and Ringhio on OS4
Code: Select all
SendRexxCommand("RINGHIO","REGISTERAPP APP 'YOURAPPNAME'") ; Maybe this is obsolete now
Function p_ringhio(msg)
rc$ = "RINGHIO APP 'YOURAPPNAME' SCREEN 'FRONT' BACKRXMSG 'YOURAPPNAME' TITLE 'TITLE' UPDATE '"..msg.."' "
SendRexxCommand("RINGHIO", rc$)
code=GetLastError()
If code <> 0
sel=SystemRequest("YOURAPPNAME", msg, "OK", #REQICON_WARNING)
EndIf
EndFunction
p_ringhio("hello world!")
Code: Select all
- New: Added ShowNotification() function; this is the swiss army knife notification function because
it works on (almost) every platform; ShowNotification() will show an informational popup which will
disappear automatically after a certain delay; on Android/iOS, ShowNotification() does the same as
ShowToast(), on AmigaOS 4 it does the same as ShowRinghioMessage() (which is why you need to set
"RegisterApplication" to TRUE on OS4 in order to use the function); note that on Windows notifications
are only supported if there is a tray icon; thus, if you haven't called SetTrayIcon() explicitly,
ShowNotification() will do this for you because it can only show a notification if there is a tray
icon
Code: Select all
- New [MorphOS]: ShowNotification() supports the MagicBeacon system now; two different kinds are supported:
normal and error notifications; to show an error, set the "Icon" tag in the optional table argument to
#REQICON_ERROR; otherwise, a normal notification is shown; the notification will use app name defined in
the @APPTITLE preprocessor command