home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 17
/
CD_ASCQ_17_101194.iso
/
dos
/
prg
/
mos
/
exemples
/
gfx_src
/
string.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-09-17
|
3KB
|
68 lines
{╔══════════════════════════════════════════════════════════════════════════╗
║ EXEMPLE D'UTILISATION DES FONCTIONS DE L'INTERFACE GRAPHIQUE ║
╠══════════════════════════════════════════════════════════════════════════╣
║ OBTENTION D'UN REQUESTER DE STRING ║
╠══════════════════════════════════════════════════════════════════════════╣
║ 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_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 PRINCIPALE ║
╚══════════════════════════════════════════════════════════════════════════╝}
Procedure MAIN;
Var But0,But1,But2 :ButG; {*Type pour Gadgets Prédéfinit*}
ExitFlg :Boolean; {*Flag Sortie Programme*}
NUM :Integer; {*Numero couleur Sélectionnée*}
ES :String;
Begin
ExitFlg:=False;
ButtonG(200,10,240,False,But0,'OBTENTION D''UN REQUESTER DE STRING'); {*Titre*}
ButtonG(10,15,59,False,But1,'E_XIT'); {*Initialise les Boutons*}
ButtonG(10,35,150,False,But2,'GET _STRING REQUESTER');
Bevel(10,105,630,125,1,Col7,True,True); {*Affiche la Boite*}
DispG(20,110,Col7,'VOUS AVEZ RENTRE LA PHRASE .....');
ES:='MODIFIEZ-MOI...'; {*Phrase à Modifier*}
Repeat
If GETMSG_BUT(But1,1)=True Then ExitFlg:=True;{*Sortie du Programme*}
If GETMSG_BUT(But2,1)=True Then Begin {*Requester Palette*}
STRING_REQUESTG('REQUESTER','ENTREZ UNE PHRASE|',' _OK |_CANCEL|',64,390,ES,NUM);
If NUM=1 Then DispG(220,110,Col7,ES+' '){*Display String*}
Else DispG(220,110,Col7,'AUCUNE PHRASE N''A ETE RENTREE...');{*Display None*}
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.