home *** CD-ROM | disk | FTP | other *** search
/ DP Tool Club 17 / CD_ASCQ_17_101194.iso / dos / prg / mos / exemples / gfx_src / system.pas < prev   
Pascal/Delphi Source File  |  1994-09-11  |  3KB  |  59 lines

  1. {╔══════════════════════════════════════════════════════════════════════════╗
  2.  ║       EXEMPLE D'UTILISATION DES FONCTIONS DE L'INTERFACE GRAPHIQUE       ║
  3.  ╠══════════════════════════════════════════════════════════════════════════╣
  4.  ║              OBTENTION D'UN REQUESTER CONFIGURATION SYSTEME              ║
  5.  ╠══════════════════════════════════════════════════════════════════════════╣
  6.  ║ Coded by Zuul as BouFFtou as Cheveau Frédéric.                           ║
  7.  ║ Programmé à l'IUT de Montpellier sur Turbo Pascal V7.00.                 ║
  8.  ║ Contact us on 36.14 RTEL1 - Bal "BouFFtou" or Bal "ICF".                 ║
  9.  ╚══════════════════════════════════════════════════════════════════════════╝}
  10.  
  11. {$M 64000,0,365520}                      {*Stack And Heap*}
  12. Program ESSAIS;                          {*Nom du Programme*}
  13.  
  14. Uses ZUUL_MSE,                           {*Gestion de la Souris*}
  15.      ZUUL_TXT,                           {*Gestion du Texte*}
  16.      ZUUL_ASM,                           {*Gestion de l'ASM*}
  17.      ZUUL_TOO,                           {*Gestion des Tools et Box*}
  18.      ZUUL_GAD,                           {*Gestion des Gadgets*}
  19.      ZUUL_REQ;                           {*Gestion des Requesters*}
  20.  
  21. {╔══════════════════════════════════════════════════════════════════════════╗
  22.  ║                         PROCEDURE PRINCIPALE                             ║
  23.  ╚══════════════════════════════════════════════════════════════════════════╝}
  24.  
  25. Procedure MAIN;
  26. Var But0,But1,But2           :ButG;           {*Type pour Gadgets Prédéfinit*}
  27.     ExitFlg                  :Boolean;        {*Flag Sortie Programme*}
  28.  
  29. Begin
  30. ExitFlg:=False;
  31. ButtonG(200,10,240,False,But0,'OBTENTION D''UN REQUESTER SYSTEME'); {*Titre*}
  32. ButtonG(10,15,59,False,But1,'E_XIT');          {*Initialise les Boutons*}
  33. ButtonG(10,35,110,False,But2,'CONFIG _SYSTEME');
  34.  
  35. Repeat
  36. If GETMSG_BUT(But1,1)=True Then ExitFlg:=True;{*Sortie du Programme*}
  37.  
  38. If GETMSG_BUT(But2,1)=True Then               {*Requester Config Systeme*}
  39.    SYSTEM_REQUESTG(100,70,'PLEASE SELECT YOUR CONFIGURATION');
  40.  
  41. Until ExitFlg=True;                           {*Sortie du Programme*}
  42. End;
  43.  
  44. {╔═══════════════════════════════════════════════════════════════════════════╗
  45.  ║                            PROGRAMME PRINCIPAL                            ║
  46.  ╚═══════════════════════════════════════════════════════════════════════════╝}
  47.  
  48. Begin
  49. INIT_ASM;                               {*Initialise All for Asm*}
  50. INIT_SCREEN;                            {*Initialise All for Screen*}
  51. INIT_MOUSE;                             {*Initialise All for Mouse*}
  52.  
  53. MAIN;                                   {*Execute le Programme Principal*}
  54.  
  55. DONE_MOUSE;                             {*Restore All for Mouse*}
  56. DONE_SCREEN;                            {*Restore All for Screen*}
  57. DONE_ASM;                               {*Restore All for Asm*}
  58. End.
  59.