home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
dos
/
prg
/
mos
/
exemples
/
gfx_src
/
progress.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-09-11
|
4KB
|
84 lines
{╔══════════════════════════════════════════════════════════════════════════╗
║ EXEMPLE D'UTILISATION DES FONCTIONS DE L'INTERFACE GRAPHIQUE ║
╠══════════════════════════════════════════════════════════════════════════╣
║ OBTENTION D'UN PROGRESS REQUESTER ║
╠══════════════════════════════════════════════════════════════════════════╣
║ 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 Crt,
ZUUL_MSE, {*Gestion de la Souris*}
ZUUL_TXT, {*Gestion du Texte*}
ZUUL_ASM, {*Gestion de l'ASM*}
ZUUL_COL, {*Gestion des Couleurs*}
ZUUL_TOO, {*Gestion des Tools et Box*}
ZUUL_GAD, {*Gestion des Gadgets*}
ZUUL_REQ; {*Gestion des Requesters*}
{╔═══════════════════════════════════════════════════════════════════════════╗
║ PROCEDURE EXECUTE_MODULE ║
╠═══════════════════════════════════════════════════════════════════════════╣
║ IN.....: / ║
║ OUT....: / ║
║ EXPLAIN: Execute le Module d'écriture sur Disque, et Affiche le ║
║ Requester "PROGRESS BAR" qui Indique l'Etat de l'écriture. ║
╚═══════════════════════════════════════════════════════════════════════════╝}
Procedure PROGRESS_PROC;
Var A:Integer;
P:TProgress;
ES:String[11];
Begin
A:=0;
Repeat
Str(A,ES);
PROGRESS_REQUESTG('CRUNCHING FILE ON DISK...','COMPLETED '+ES,A,12,P);
Delay(15);
Inc(A);
Until (P.Abort=True) Or (A>100);
End;
{╔═══════════════════════════════════════════════════════════════════════════╗
║ PROCEDURE PRINCIPALE ║
╚═══════════════════════════════════════════════════════════════════════════╝}
Procedure MAIN;
Var But0,But1,But2:ButG; {*Type pour Gadgets Prédéfinit*}
Exit_Flg:Boolean;
Begin
ButtonG(200,10,240,False,But0,'OBTENTION D''UN PROGRESS REQUESTER'); {*Titre*}
ButtonG(10,15,59,False,But1,'E_XIT'); {*Initialise les Boutons*}
ButtonG(10,35,120,False,But2,'_PROGRESS REQUESTER');
Exit_Flg:=False; {*Don't Forget !!!*}
Repeat
If GETMSG_BUT(But1,1)=True Then Exit_Flg:=True;
If GETMSG_BUT(But2,1)=True Then PROGRESS_PROC;{*Requester Progress*}
Until Exit_Flg=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.