Article ID: 138395
Article Last Modified on 2/11/2000
check box 'check1' command button 'command1' option button 'option1'
*** Start Program ***
*
* The first five lines instantiate a form named 'newform' and add
* the command button, option button, and check box controls to the form.
*
***
PUBLIC newform
newform = CREATEOBJECT("FORM")
newform.Addobject("Command1","CommandButton")
newform.Addobject("Check1","CheckBox")
newform.Addobject("Option1","Optionbutton")
*
* The next few lines set properties for the controls.
*
newform.Check1.Top = 20
newform.Option1.Top = 40
newform.setall('Caption', "")
newform.setall('Visible',.T.)
newform.show &&Shows the form
***End Program ***
*** Start Program ***
*
DEFINE WINDOW window1 FROM 1,10 TO 40,40 FLOAT CLOSE
ACTIVATE WINDOW window1
@ 5,5 GET command1 ;
PICTURE "@*HN" ;
DEFAULT 1
@ 8,5 GET option1 ;
PICTURE "@*RVN" ;
DEFAULT 1
@ 11,5 GET check1 ;
PICTURE "@*C" ;
DEFAULT 1
READ CYCLE WHEN do_when()
RELEASE WINDOW window1
PROCEDURE do_when
SHOW GET command1,1 PROMPT SPACE(0)
SHOW GET option1, 1 PROMPT SPACE(0)
SHOW GET check1,1 PROMPT SPACE(0)
*
*** End Program ***
DEFINE WINDOW window1 FROM 1,10 TO 40,40 FLOAT CLOSE
ACTIVATE WINDOW window1
@ 5,5 GET command1 ;
PICTURE "@*HN" ;
SIZE 1,10 ;
DEFAULT 1
@ 8,5 GET option1 ;
PICTURE "@*RVN" ;
SIZE 1, 10;
DEFAULT 1
@ 11,5 GET check1 ;
PICTURE "@*C" ;
SIZE 1, 10;
DEFAULT 1
READ CYCLE
RELEASE WINDOW window1
Additional query words: VFoxWin
Keywords: KB138395