home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
Ozogan
/
FORM3.IPS
< prev
next >
Wrap
Text File
|
1997-11-16
|
2KB
|
50 lines
VAR
ico : word; rad : integer; slo : integer; klavesa : word;
ENDVAR
PROCEDURE KrokV
ChangeIcon(ico,'PES_V.ICO');
IF slo < 288; slo := slo + 32; ENDIF;
MoveIcon(ico, slo+11, rad+11)
ENDPROC
PROCEDURE KrokZ
ChangeIcon(ico,'PES_Z.ICO');
IF slo > 10; slo := slo - 32; ENDIF;
MoveIcon(ico, slo+11, rad+11)
ENDPROC
PROCEDURE KrokS
ChangeIcon(ico,'PES_S.ICO');
IF rad > 10; rad := rad - 32; ENDIF;
MoveIcon(ico, slo+11, rad+11)
ENDPROC
PROCEDURE KrokJ
ChangeIcon(ico,'PES_J.ICO');
IF rad < 224; rad := rad + 32; ENDIF;
MoveIcon(ico, slo+11, rad+11)
ENDPROC
PROCEDURE stisk
IF KLAVESA = 38 THEN KROKS ENDIF;
IF KLAVESA = 40 THEN KROKJ ENDIF;
IF KLAVESA = 39 THEN KROKV ENDIF;
IF KLAVESA = 37 THEN KROKZ ENDIF;
ENDPROC
PROCEDURE main
createForm ('Form1', 'Test pou₧itφ rßm∙, tlaΦφtek a ikon', 50, 80, 430, 360);
addFrame('Form1', 9, 9, 324, 264);
addFrame('Form1', 9, 280, 410, 48);
addStatic ('Form1', "Pohyb pejska m∙₧ete na vymezenΘ ploÜe ovkßdat kurzorov²mi", 30, 284, 300, 14);
addStatic ('Form1', "klßvesami, nebo kliknutφm myÜφ na tlaΦφtko s Üipkou." , 50, 304, 300, 14);
ico := addIcon('Form1', 'haf', 'PES_V.ICO', 11, 234, 32, 32, 'getx', 'gety');
addSpeedButton('Form1', 'KrokS','SIPKA_S.BMP', 367, 187, 24, 24);
addSpeedButton('Form1', 'KrokJ','SIPKA_J.BMP', 367, 241, 24, 24);
addSpeedButton('Form1', 'KrokV','SIPKA_V.BMP', 394, 214, 24, 24);
addSpeedButton('Form1', 'KrokZ','SIPKA_Z.BMP', 340, 214, 24, 24);
rad := 224; slo := 0;
FormActionKey('form1', 'stisk', 'klavesa');
formDialog('Form1');
QUIT;
ENDPROC