CHAPTER FOUR VARIABLES AND CONSTANTS COMPUTER MATHEMATICS CHAPTER FOUR VARIABLES AND CONSTANTS
OPTION BUTTONS Referred to as radio buttons Way to obtain input from the user Grouped to provide a set of choices Only one option button can be selected at one time
OPTION BUTTON PROPERTIES Name – identifies the object and is used by the programmer; begins with opt. Caption – text displayed on the option button label; can be changed at runtime Value – True or False to display the option button as being selected or not ; only one option button can be True at any given time; changing the value of one button to True will automatically change the other button to False
OPTION BUTTONS A click event is usually coded for each button. The click event is executed when the user clicks on an option button A Frame – is a container object to group option buttons relative to a single choice Frame must be created before any option buttons are added to the application Frame properties – name beginning with fra; caption which is text as the frame label
LAB TIME REVIEW # 11