How Do I...

Step 2: Add parts to AlarmClockView

Step 1: Make AlarmClockApplication No tip for this topic No example for this topic Step 3: Change the parts' settings

When completed, AlarmClockView has the following user interface:
Alarm Clock user interface

To define this user interface, first, add two push buttons to the empty window in the Composition Editor:

  1. Select Buttons category icon (Buttons category) and Push Button icon (Push Button part) from the parts palette. After you select them, the status line along the bottom of the editor shows:

    Category: Buttons Part: Push Button

  2. Click on the Sticky checkbox in the lower left of the editor so it shows a check mark. You now can add multiple push buttons to the empty window without having to select the Push Button part again.
  3. Click on the lower-left and then on the lower-right of the window. This adds the push buttons.
    Window with push button
  4. Click on Selection tool (the Selection tool) on the Tool bar to disarm the Sticky.

Next, add the other parts. You'll need:

Parts to add
Where they are in the parts palette

1 Multi-line Edit
Data Entry category icon category, Multi-line Edit icon part

4 Labels
Data Entry category icon category, Label icon part

2 Spin Buttons
Data Entry category icon category, Spin Button icon part

After you add the parts, the window resembles:
Alarm clock window with parts as dropped


[ Top of Page | Previous Page | Next Page | Table of Contents ]