next up previous
Next: Edition de texte Up: Code Previous: Code

Hello World

  Ce code sert surtout à montrer à quel point il faut peu de code pour afficher ``Hello World'' à l'écran avec windowtools.

begin
external class windowtools;   !appel de la librairie;

   inspect new simplewindow(``Test'') do !Creation d'une fenetre principale;
      begin
         ref(button) quit;
         quit :- MakeButton(``Quit'');    !Creation du bouton de sortie;
         DrawCenterText(``Hello World''); !Affichage du texte;
         quit.wait;   !Debut de la boucle d'attente d'evenements;
      end;
end.


CARRIER Benoit
Sun Feb 18 21:57:20 EST 1996