benötigt die libnotify und devel files...
Ein Screenshot:

diese Nachricht erscheint in der unteren rechten Ecke sofern keine GadgetID oder WindowID angegeben wurde
oder so, wenn eine GadgetID angegeben wurde:

Ein Besipel:
Code: Alles auswählen
#NOTIFY_URGENCY_LOW = 0;, /**< Low urgency. */
#NOTIFY_URGENCY_NORMAL = 1;, /**< Normal urgency. */
#NOTIFY_URGENCY_CRITICAL = 2;, /**< Critical urgency. */
Procedure mycallback()
; if the notification is clicked somwhere, this code will be executed...
EndProcedure
pgm.s=ProgramFilename()
notify_init_(@pgm); necessary to init the notification server for your program
hwnd=OpenWindow(0,200,100,500,350,"")
CreateGadgetList(WindowID(0))
ButtonGadget(1,10,10,100,30,"Test")
mn=notify_show("titel","body",50,#NOTIFY_URGENCY_NORMAL,GadgetID(1)); the notification is added to a gadget
; mn=notify_show("titel","body",50,2,0); use this line to see the difference
;if you need an action when the notification is clicked
action.s="default"
label.s="clicked"
notify_add_action(mn,@action,@label,@mycallback(),0,0)
;---------------------
CloseGadgetList()
Repeat
ev=WaitWindowEvent(1)
ForEver
End
http://home.arcor.de/x-linux/pure/notify/notify_lib (am besten nach purebasic/purelibraries/userlibraries kopieren
der Sourcecode:
http://home.arcor.de/x-linux/pure/notify/notify_lib.pb
ein weiterer Befehl der Lib ist notify_close(*notify) welcher in dem Beispiel nicht verwendet wird
Ich denke, anhand des Beispieles ist zu ersehen, wie die lib funktioniert. Wenn nicht.. einfach fragen.
Kritik, Anregungen etc sind jederzeit willkommen