home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
dos
/
prg
/
mos
/
exemples
/
gfx_src
/
gadgets.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-09-11
|
4KB
|
87 lines
{╔══════════════════════════════════════════════════════════════════════════╗
║ EXEMPLE D'UTILISATION DES FONCTIONS DE L'INTERFACE GRAPHIQUE ║
╠══════════════════════════════════════════════════════════════════════════╣
║ GESTION DES BOUTONS POUSSOIRS ║
╠══════════════════════════════════════════════════════════════════════════╣
║ 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,But2,But3,But4, {*Type pour Gadgets Boutons*}
But5,But6,But7,But8,
But9,But10,But11,But12,
But13 :ButG;
ExitFlg :Boolean; {*Flag Sortie Programme*}
Begin
ExitFlg:=False;
ButtonG(200,10,240,False,But0,'GESTION DES BOUTONS POUSSOIRS'); {*Titre*}
Bevel(100,55,540,190,1,7,True,True); {*Affiche la Boite du Centre*}
ButtonG(10,15,59,False,But0,'E_XIT'); {*Initialise les Boutons*}
ButtonG(120,65,120,False,But2,'BOUTON DE GAUCHE');
ButtonG(120,85,120,False,But3,'BOUTON DU CENTRE');
ButtonG(120,105,120,False,But4,'BOUTON DE DROITE');
ButtonG(120,165,250,False,But5,'LA TAILLE EST LIMITEE A 37 CARACTERES');
ButtonG(120,145,400,False,But6,'IL PEUT ETRE TRES GRAND');
ButtonG(320,65,200,False,But7,'IL EST TOUJOURS CENTRE');
ButtonG(370,85,150,False,But8,'JE SUIS INACTIF');
ButtonG(260,105,50,False,But9,'_BIP');
ButtonG(450,105,25,True,But10,'OFF'); {*Bouton On/Off*}
ButtonG(450,125,60,True,But11,'ESSAYEZ'); {*Bouton On/Off*}
ButtonG(120,125,120,False,But12,'PRESSEZ CTRL _A');{*Bouton avec Access Clavier*}
DispG(350,107,Col7,'JE RESTE BLOQUE');
DispG(390,127,Col7,'MOI AUSSI');
Repeat
If GETMSG_BUT(But0,1)=True Then ExitFlg:=True;{*Sortie du Programme*}
If GETMSG_BUT(But2,1)=True Then Else; {*Test des Boutons*}
If GETMSG_BUT(But3,2)=True Then Else;
If GETMSG_BUT(But4,3)=True Then Else;
If GETMSG_BUT(But5,1)=True Then Else;
If GETMSG_BUT(But6,1)=True Then Else;
If GETMSG_BUT(But7,1)=True Then Else;
If GETMSG_BUT(But9,1)=True Then Beep; {*Action = Beep*}
If GETMSG_BUT(But10,1)=True Then Else;
If GETMSG_BUT(But11,1)=True Then Else;
If GETMSG_BUT(But12,1)=True Then Else;
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.