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:

  1. Find the Component Palette. If it's not visible, then choose Toolbox from the Window menu in the main window.
  2. 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.
  3. 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.
  4. 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.

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.