home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
dos
/
prg
/
mos
/
exemples
/
gfx_src
/
ligh_box.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-09-11
|
3KB
|
70 lines
{╔══════════════════════════════════════════════════════════════════════════╗
║ EXEMPLE D'UTILISATION DES FONCTIONS DE L'INTERFACE GRAPHIQUE ║
╠══════════════════════════════════════════════════════════════════════════╣
║ GESTION DES BOUTONS RADIOS ║
╠══════════════════════════════════════════════════════════════════════════╣
║ Coded by Zuul as BouFFtou as Cheveau Frédéric. ║
║ Programmé à l'IUT de Montpellier sur Turbo Pascal V7.00. ║
║ Contact us on 36.14 RTEL1 - Bal "BouFFtou" or Bal "ICF". ║
╚══════════════════════════════════════════════════════════════════════════╝}
{$M 64000,0,365520} {*Stack And Heap*}
Program ESSAIS; {*Nom du Programme*}
Uses ZUUL_MSE, {*Gestion de la Souris*}
ZUUL_ASM, {*Gestion des Instructions ASM*}
ZUUL_TXT, {*Gestion du Texte*}
ZUUL_COL, {*Gestion des Couleurs*}
ZUUL_TOO, {*Gestion des Tools et Box*}
ZUUL_GAD, {*Gestion des Gadgets*}
Graph;
{╔══════════════════════════════════════════════════════════════════════════╗
║ PROCEDURE PRINCIPALE ║
╚══════════════════════════════════════════════════════════════════════════╝}
Procedure MAIN;
Var But0,But1 :ButG; {*Type pour Gadgets Prédéfinit*}
ExitFlg :Boolean; {*Flag Sortie Programme*}
Lb1:LightB;
ES:String;
Begin
ExitFlg:=False;
Bevel(10,105,300,135,1,Col7,True,True); {*Affiche la Boite*}
ButtonG(200,10,240,False,But0,'GESTION DES LIGHT-BOX'); {*Titre*}
ButtonG(10,15,59,False,But1,'E_XIT'); {*Initialise les Boutons*}
DispG(20,110,Col7,'COORDONEE X1: COORDONEE X2:');
DispG(20,120,Col7,'COORDONEE Y1: COORDONEE Y2:');
Repeat
If GETMSG_BUT(But1,1)=True Then ExitFlg:=True;{*Sortie du Programme*}
If LIGHT_BOX(Lb1,1)=True Then {*Gestion Light_Box*}
Begin
SetColor(Col0);
Str(LB1.X1,ES); DispG(104,110,Col7,ES+' ');
Str(LB1.Y1,ES); DispG(104,120,Col7,ES+' ');
Str(LB1.X2,ES); DispG(240,110,Col7,ES+' ');
Str(LB1.Y2,ES); DispG(240,120,Col7,ES+' ');
End;
Until ExitFlg=True; {*Sortie du Programme*}
End;
{╔══════════════════════════════════════════════════════════════════════════╗
║ PROGRAMME PRINCIPAL ║
╚══════════════════════════════════════════════════════════════════════════╝}
Begin
INIT_ASM; {*Initialise All for Asm*}
INIT_SCREEN; {*Initialise All for Screen*}
INIT_MOUSE; {*Initialise All for Mouse*}
MAIN; {*Execute le Programme Principal*}
DONE_MOUSE; {*Restore All for Mouse*}
DONE_SCREEN; {*Restore All for Screen*}
DONE_ASM; {*Restore All for Asm*}
End.