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

  1. {╔══════════════════════════════════════════════════════════════════════════╗
  2.  ║       EXEMPLE D'UTILISATION DES FONCTIONS DE L'INTERFACE GRAPHIQUE       ║
  3.  ╠══════════════════════════════════════════════════════════════════════════╣
  4.  ║                    OBTENTION D'UN REQUESTER DE STRING                    ║
  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_COL,                           {*Gestion des Couleurs*}
  18.      ZUUL_TOO,                           {*Gestion des Tools et Box*}
  19.      ZUUL_GAD,                           {*Gestion des Gadgets*}
  20.      ZUUL_REQ;                           {*Gestion des Requesters*}
  21.  
  22. {╔══════════════════════════════════════════════════════════════════════════╗
  23.  ║                         PROCEDURE PRINCIPALE                             ║
  24.  ╚══════════════════════════════════════════════════════════════════════════╝}
  25.  
  26. Procedure MAIN;
  27. Var But0,But1,But2           :ButG;          {*Type pour Gadgets Prédéfinit*}
  28.     ExitFlg                  :Boolean;       {*Flag Sortie Programme*}
  29.     NUM                      :Integer;       {*Numero couleur Sélectionnée*}
  30.     ES                       :String;
  31.  
  32. Begin
  33. ExitFlg:=False;
  34. ButtonG(200,10,240,False,But0,'OBTENTION D''UN REQUESTER DE STRING'); {*Titre*}
  35. ButtonG(10,15,59,False,But1,'E_XIT');         {*Initialise les Boutons*}
  36. ButtonG(10,35,150,False,But2,'GET _STRING REQUESTER');
  37. Bevel(10,105,630,125,1,Col7,True,True);       {*Affiche la Boite*}
  38. DispG(20,110,Col7,'VOUS AVEZ RENTRE LA PHRASE .....');
  39. ES:='MODIFIEZ-MOI...';                        {*Phrase à Modifier*}
  40.  
  41. Repeat
  42. If GETMSG_BUT(But1,1)=True Then ExitFlg:=True;{*Sortie du Programme*}
  43.  
  44. If GETMSG_BUT(But2,1)=True Then Begin         {*Requester Palette*}
  45.    STRING_REQUESTG('REQUESTER','ENTREZ UNE PHRASE|',' _OK |_CANCEL|',64,390,ES,NUM);
  46.    If NUM=1 Then DispG(220,110,Col7,ES+'     '){*Display String*}
  47.       Else DispG(220,110,Col7,'AUCUNE PHRASE N''A ETE RENTREE...');{*Display None*}
  48.    End;
  49.  
  50. Until ExitFlg=True;                           {*Sortie du Programme*}
  51. End;
  52.  
  53. {╔═══════════════════════════════════════════════════════════════════════════╗
  54.  ║                            PROGRAMME PRINCIPAL                            ║
  55.  ╚═══════════════════════════════════════════════════════════════════════════╝}
  56.  
  57. Begin
  58. INIT_ASM;                               {*Initialise All for Asm*}
  59. INIT_SCREEN;                            {*Initialise All for Screen*}
  60. INIT_MOUSE;                             {*Initialise All for Mouse*}
  61.  
  62. MAIN;                                   {*Execute le Programme Principal*}
  63.  
  64. DONE_MOUSE;                             {*Restore All for Mouse*}
  65. DONE_SCREEN;                            {*Restore All for Screen*}
  66. DONE_ASM;                               {*Restore All for Asm*}
  67. End.
  68.