Subversion Repositories Kolibri OS

Rev

Go to most recent revision | Blame | Last modification | View Log | Download | RSS feed

  1. #include "..\lib\kolibri.h--"
  2. #include "..\lib\memory.h--"
  3. // Kolibri Notify Daemon. v0.1 by SoUrcerer
  4.  
  5. dword id;
  6. void main()
  7. {  
  8.  
  9.    word key;
  10. id=GetScreenWidth();
  11.  
  12. loop()
  13.    {
  14.       switch(WaitEvent())
  15.       {
  16.          case evButton:
  17.             id=GetButtonID();              
  18.             ExitProcess();
  19.           break;
  20.      
  21.          case evKey:
  22.          key = GetKey();
  23.          ExitProcess();
  24.          break;
  25.          
  26.          case evReDraw:
  27.             draw_window();
  28.           break;
  29.       }
  30.         Pause (500);
  31.         ExitProcess();
  32.    }
  33. }
  34.  
  35. void draw_window()
  36. {
  37.    WindowRedrawStatus(1);
  38.    DefineAndDrawWindow(id-300,0,300,44,0x30000000,0x1012141F,0,0,"Kolibri Notify");
  39. //   DefineButton(0,300,0,96,0x30000001,0x0) ;
  40.    WriteText(7,7,0x80,0xFFFFFF,"Kolibri Notify",0);
  41.    WriteText(7,25,0x80,0xEFEFEF,I_Param,0);
  42.    WindowRedrawStatus(2);
  43. }
  44.  
  45. stop:
  46.