Page 190 - The Ultimate Palm Robot
P. 190
Color profile: Generic CMYK printer profile
Composite Default screen
Bots /The Ultimate Palm Robot/ Mukhar & Johnson / 222880-6 / Chapter 7
Chapter 7 Essential Robot Programming Strategies 173
Create another label, a field, and two buttons as shown in the next illustra-
tion. Change the label text to “Enter Your Name” and the second button to
“Cancel”. Finally, in the Properties pane for each of these controls, set its Visi-
ble property to False.
Now we’re going to enter some code to do some actual work. Double-click-
ing a control on a form will bring up a code window. Code entered into the
window will execute when the control is activated. So, if we add code to a but-
ton, the code will execute when the button is clicked. Double-click the Enter
P:\010Comp\Bots\880-6\ch07.vp
Monday, May 12, 2003 4:29:24 PM