Article ID: 131838
Article Last Modified on 8/25/1999
Wait window "option button 1"
Wait window "option button 2"
this.parent.click
do case
case this.value='red'
thisform.backcolor=rgb(255,0,0)
case this.value='green'
thisform.backcolor=rgb(0,255,0)
case this.value='blue'
thisform.backcolor=rgb(0,255,0)
endcase
this.option1.clickThis causes the code in the Click procedure of the Option1 button to run whenever the user clicks the option group frame instead of an actual button. Of course, the code in the Option1 Click procedure also runs when the user clicks the Option1 button directly. But even if another button had the focus, and the user clicks within the frame of the OptionGroup container, the code for the Option1 button is run.
Additional query words: VFoxWin
Keywords: KB131838