home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 16
/
CD_ASCQ_16_0994.iso
/
news
/
572
/
xgrafic2
/
demos
/
gesdisk.pas
< prev
next >
Wrap
Pascal/Delphi Source File
|
1994-07-21
|
6KB
|
177 lines
{UN PROGRAMME NON FINI}
{MAIS QUI PERMET DE MONTRER L'UTILISATION DES FONCTIONS DE XGRAPHIC}
program GESDISK;
USES crt,dos, XGRAPHIC;
var an,mois,jour,jrsem,h,m,s,c : word;
chan,chmois,chjour,chh,chm,chs : string;
passage, boucle : integer;
consult, impress : integer;
nom : string;
nume, erreur,n : integer;
ch : string;
{déclaration des variables contenant les informations saisies}
var numero : string[6];
format : string[1];
typ : string;
libelle : string[35];
descrip : string[40];
systeme : string[20];
confirm : string;
BEGIN
modevga480;
initsouris;
affichepcx('gesdisk.pcx');
choisirpolice(2,6);
cadre3d(180,60,450,125,1);
icone(190,70,440,115,7,16,15,' GESTION DES DISQUETTES');
cadre3d(200,280,440,390,7);
choisirpolice(0,3);
texte3d(235,290,16,15,'GESDISK');
line3d(207,315,433,315,16,15);
choisirpolice(0,1);
EffetChaine(210,10,15,'DOMINIQUE DELAIRE');
EffetChaine(105,20,15,'Réalisé avec XGRAPHIC pour turbo pascal');
EffetChaine(260,30,15,'(C) 1994');
choisirpolice(2,5);
GetDate(An, Mois, Jour, Jrsem);
str(an,chan);
str(mois,chmois);
str(jour,chjour);
EffetChaine(60,218,11,chjour+'/'+chmois+'/'+chan);
gettime(h,m,s,c);
str(h,chh);
str(m,chm);
str(s,chs);
EffetChaine(450,218,11,chh+':'+chm+':'+chs);
choisirpolice(0,1);
texte(250,330,5,'VOTRE NOM, s.v.p.');
nom := saisiechaine3din(10,270,360,16,14);
affichesouris;
boucle := 0;
passage := 0;
while boucle = 0
do begin
if passage = 0
then begin
cachesouris;
efface;
fenetre3d(10,10,630,400,1,16,11,'* GESTION DES DISQUETTES * Utilisé par '+nom+' le '+chjour+'/'+chmois+'/'+chan);
panneau3d(530,410,630,450,9);
panneau3din(535,415,625,445,14);
panneau3d(30,50,130,80,16);
panneau3d(140,50,240,80,16);
panneau3d(250,50,350,80,16);
choisirpolice(2,5);
menu3d(360,50,460,80,1,15,'CONSULTATION');
menu3d(470,50,570,80,1,15,' IMPRESSION');
texte(52,60,15,'CREATION');
texte(147,60,15,'MODIFICATION');
texte(257,60,15,'SUPPRESSION');
choisirpolice(0,1);
icone(580,50,610,80,8,11,1,'?');
panneau3d(40,120,600,380,7);
panneau3din(50,130,590,370,7);
line3d(51,150,589,150,16,15);
panneau3d(530,410,630,450,9);
panneau3din(535,415,625,445,14);
choisirpolice(2,5);
texte(540,422,16,'RETOUR DOS');
ScrollObjetHoriz(530,410,630,450,20,0,16);
panneau3d(530,410,630,450,9);
panneau3din(535,415,625,445,14);
texte(545,422,16,'DOS SHELL');
ScrollObjetHoriz(530,410,630,450,140,0,16);
choisirpolice(0,1);
affichesouris;
passage := 1;
end;
{ SI L'UTILISATEUR SELECTIONNE L'OPTION CREATION}
if clickobjet(30,50,130,80) = 1
then begin
texte(90,140,1,'** S A I S I E D " U N N O U V E A U T I T R E **');
texte3d(70,170,16,15,'NUMERO DISQUETTE :');
texte3d(70,200,16,15,' NOM :');
texte3d(70,230,16,15,' DESCRIPTION :');
texte3d(70,260,16,15,' FORMAT :');
texte3d(70,270,1,11,' (0 = 3p½)');
texte3d(70,280,1,11,' (1 = 5p¼)');
texte3d(70,300,16,15,' SYSTEME :');
texte3d(70,330,16,15,' TYPE :');
texte3d(250,320,1,11,'0:SGBD 1:Bureautique 2:Santé 3:Education');
texte3d(250,330,1,11,'4:Graphisme 5:Jeu 6:Programmation 7:Divers');
numero := '';
while (numero = '')
do begin
numero := saisiechaine3d(6,220,165,7,16);
end;
libelle := saisiechaine3din(35,220,195,1,15);
descrip := saisiechaine3din(40,220,225,1,15);
format := '';
while (format <> '0') and (format <> '1')
do begin
format := saisiechaine3din(1,220,255,1,15);
end;
systeme := saisiechaine3din(20,220,295,1,15);
typ := '12';
while (typ <> '0') and (typ <> '1') and (typ <> '2') and (typ <> '3')
and (typ <> '4') and (typ <> '5') and (typ <> '6') and (typ <> '7')
do begin
typ := saisiechaine3din(1,220,325,1,15);
end;
texte3d(360,350,16,15,'Confirmation (O/N) :');
confirm := '';
while (confirm <> 'O') and (confirm <> 'N') and (confirm <> 'o') and (confirm <> 'n')
do begin
confirm := saisiechaine3din(1,530,345,7,1);
end;
passage := 0;
end;
if clickobjet(360,50,460,80) = 1
then begin
affoption3d(1,360,50,460,80,7,16,'PAR N°');
affoption3d(2,360,50,460,80,7,16,'PAR NOM');
affoption3d(3,360,50,460,80,7,16,'PAR TYPE');
if Attseloption(3,360,50,460,80) = 0
then passage := 0;
end;
if clickobjet(470,50,570,80) = 1
then begin
affoption3d(1,470,50,570,80,7,16,'PAR N°');
affoption3d(2,470,50,570,80,7,16,'PAR NOM');
affoption3d(3,470,50,570,80,7,16,'PAR TYPE');
if attseloption(3,470,50,570,80) = 0
then passage := 0;
end;
if (fermeturefenetre3d(10,10,630,400,16) = 1) or (clickobjet(20,410,120,450) = 1)
then begin
finmodegraphique;
halt;
end;
end;
END.