home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 June
/
PCWorld_1998-06_cd.bin
/
software
/
Programy
/
Ozogan
/
FORM4.IPS
< prev
next >
Wrap
Text File
|
1997-11-16
|
858b
|
23 lines
VAR
ico : word; GetX : integer; GetY : integer
sayX : word; sayY : word;
ENDVAR
PROCEDURE klik
DlgSetControlText(sayX,"Sou°adnice X = "+IntToStr(GetX));
DlgSetControlText(sayY,"Sou°adnice Y = "+IntToStr(GetY));
ENDPROC
PROCEDURE main
GetX := 0;
GetY := 0;
createForm ('Form1', 'Test pou₧itφ rßm∙ a ikon', 100, 150, 300, 160);
addFrame('Form1', 10, 10, 180, 60);
addStatic ('Form1', "Pokud klikn∞te myÜφ na ikonu pejska,", 30, 85, 300, 14);
addStatic ('Form1', "zobrazφ se sou°adnice kliknutφ.", 40, 105, 300, 14);
ico := addIcon('Form1', 'klik', 'PES_V.ICO', 20, 20, 32, 32, 'GetX', 'GetY');
sayX := addStatic ('Form1', "Sou°adnice X = "+IntToStr(GetX), 70, 18, 100, 14);
sayY := addStatic ('Form1', "Sou°adnice Y = "+IntToStr(GetY), 70, 38, 100, 14);
formDialog('Form1');
QUIT;
ENDPROC