Adding a Component to the Form
To a
dd a new component to your program, you will press the appropriate button on the component palette, then click on your program's form to place the component.
For example, to add a button component to the form, you would carry out the following steps:
-
Find the Component Palette. If it's not visible, then choose Toolbox from the Window menu in the main window.
-
Find the button button in the Component Palette. If the button button is not showing, then choose Basic UI from the popout list at the top of the Palette.
-
Press the button button in the Component Palette. Move the pointer over to the form. The arrow pointer picture should change to a bent arrow.
-
Click in the middle of the form. A button called button1 should appear in the middle of the form.
|
Depending on the type of the component that you're adding, you might not need to place it on the form. When you create a new form, dialog, or floater, the component might just appear. Some components are never visible; you might not need to add them to the form, and when added, they might not "appear"--because they are never visible.
-
You will know if the Builder is prompting you to place or move a new component because the
mouse pointer picture will be that of a bent arrow when placed over the form.
If you press one of the palette buttons, and then--before you add the new component to your form--decide that you don't really want to add the component to your program, press the + button in the palette to clear your selection.