home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
dos
/
prg
/
mos
/
exemples
/
gfx_src
/
radio.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-09-11
|
4KB
|
91 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_ASM, {*Gestion des Instructions ASM*}
ZUUL_MSE, {*Gestion de la Souris*}
ZUUL_TXT, {*Gestion du Texte*}
ZUUL_COL, {*Gestion des Couleurs*}
ZUUL_TOO, {*Gestion des Tools et Box*}
ZUUL_GAD; {*Gestion des Gadgets*}
{╔══════════════════════════════════════════════════════════════════════════╗
║ PROCEDURE PRINCIPALE ║
╚══════════════════════════════════════════════════════════════════════════╝}
Procedure MAIN;
Var But0,But1 :ButG; {*Type pour Gadgets Prédéfinit*}
Rad1,Rad2,Rad3,Rad4 :Rad; {*Type pour Boutons Radios*}
Rad5,Rad6,Rad7,Rad8 :Rad; {*Type pour Boutons Radios*}
ExitFlg :Boolean; {*Flag Sortie Programme*}
Begin
ExitFlg:=False;
ButtonG(200,10,240,False,But0,'GESTION DES BOUTONS RADIOS'); {*Titre*}
Bevel(10,55,210,130,1,7,True,True); {*Affiche la Boite*}
Bevel(330,55,540,130,1,7,True,True); {*Affiche la Boite*}
DispG(20,65,Col7,'BOUTON AMIGA ACTIVE'); {*Affiche le Texte*}
DispG(20,80,Col7,'BOUTON AMIGA DESACTIVE');
DispG(20,95,Col7,'ACTIVE AVEC BOUTON CENTRE');
DispG(20,110,Col7,'ACTIVE AVEC BOUTON DROIT');
DispG(340,65,Col7,'BOUTON RADIO ACTIVE'); {*Affiche le Texte*}
DispG(340,80,Col7,'BOUTON RADIO DESACTIVE');
DispG(340,95,Col7,'ACTIVE AVEC BOUTON CENTRE');
DispG(340,110,Col7,'ACTIVE AVEC BOUTON DROIT');
ButtonG(10,15,59,False,But1,'E_XIT'); {*Initialise les Boutons*}
Radio_Box(180,63,1,True,Rad1); {*Initialise les Boutons Radio*}
Radio_Box(180,78,1,False,Rad2);
Radio_Box(180,93,1,True,Rad5); {*Initialise les Boutons Radio*}
Radio_Box(180,108,1,True,Rad6);
Radio_Box(500,63,2,True,Rad3);
Radio_Box(500,78,2,False,Rad4);
Radio_Box(500,93,2,True,Rad7);
Radio_Box(500,108,2,True,Rad8);
Repeat
If GETMSG_BUT(But1,1)=True Then ExitFlg:=True;{*Sortie du Programme*}
GETMSG_RADIO(Rad1,1); {*Active et Teste Boutons*}
GETMSG_RADIO(Rad2,1);
GETMSG_RADIO(Rad5,2); {*Active et Teste Boutons*}
GETMSG_RADIO(Rad6,3);
GETMSG_RADIO(Rad3,1);
GETMSG_RADIO(Rad4,1);
GETMSG_RADIO(Rad7,2);
GETMSG_RADIO(Rad8,3);
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.