home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1997 November
/
PCWorld_1997-11_cd.bin
/
software
/
programy
/
ozogan
/
FORM2.IPS
< prev
next >
Wrap
Text File
|
1997-06-17
|
2KB
|
50 lines
PROCEDURE DisplayForm
VAR
pol1_imp : string = "vstup 1"; pol2_imp : string = "vstup 2"; pol3_imp : string = "vstup 3";
pol4_imp : boolean = true; pol5_imp : boolean = false; pol1_out : string; pol2_out : string;
pol3_out : string; pol4_out : boolean; pol5_out : boolean;
ENDVAR
IF (formDialog("Form1")) then
messageBox(pol2_out, "obsah druhΘ editaΦnφ polo₧ky", mb_iconInformation + mb_ok);
ENDIF;
ENDPROC
PROCEDURE pushProc
IF (DlgIsControlEnabled(2))
DlgDisableControl(2);
MessageBox('EditaΦnφ Box 1 je znep°φstupn∞n', 'Zprßva u₧ivateli', mb_iconInformation + mb_ok);
ELSE
DlgEnableControl(2);
MessageBox('EditaΦnφ Box 1 je zp°φstupn∞n', 'Zprßva u₧ivateli', mb_iconInformation + mb_ok);
ENDIF
FormDialog("Form2")
ENDPROC
PROCEDURE hideCtl
IF (dlgIsControlVisible(7))
dlgHideControl(7);
ELSE
dlgShowControl(7);
ENDIF
ENDPROC
PROCEDURE updateStatic
VAR
t : string = "prvnφ polo₧ka";
ENDVAR
t := dlgGetControlText(2)
dlgSetControlText(10, "obsah polo₧ky 1 = " + t);
ENDPROC
PROCEDURE main
createForm ("Form2", "Prßzdn² formulß°", 300, 300, 350, 100);
createForm ("Form1", "Test formulß°e", 100, 100, 270, 250);
addStatic ("Form1", "polo₧ka 1", 10, 30, 50, 20);
addEditbox ("Form1", "pol1_imp", "pol1_imp", 10, 50, 150, 20, "UpdateStatic");
addStatic ("Form1", "polo₧ka 2", 10, 72, 50, 20);
addEditbox ("Form1", "pol2_imp", "pol2_out", 10, 92, 150, 20);
addStatic ("Form1", "polo₧ka 3", 10, 114, 50, 20);
addEditbox ("Form1", "pol3_imp", "pol3_out", 10, 134, 150, 20);
addCheckbox ("Form1", "pol4_imp", "pol4_out", "Check &Box", 10, 165, 90, 20);
addCheckBox ("Form1", "pol5_imp", "pol5_out", "&Ukryj Box", 10, 185, 90, 20, "HideCtl");
addPushButton("Form1", "PushProc", "zde &stiskn∞te", 160, 165, 100, 24);
addStatic ("Form1", "", 10, 205, 140, 20);
displayForm;
ENDPROC