How Do I...

Change a part's name

Change a part's label No tip for this topic Example: Change a part's name Change a part's fonts

If you have several parts of the same type on one window and you'll be adding a script to your application, consider changing the names of similar parts. It's easier to distinguish among similar parts if you assign them names that you'll remember.

For example, when you add two push buttons to a window, VisualAge assigns them the names "Push Button1" and "Push Button2." If you change the names to something meaningful, like "Start Button" and "Stop Button," they're easier to remember. The names you assign won't appear on the interface. They're solely for your benefit.

To change a part's name:

  1. Click on the part using mouse button 2. (For UNIX, use mouse button 3.)
  2. From the displayed pop-up menu for the part, select Change Name.
  3. In the displayed prompter, replace the default name that VisualAge assigned the part with a name that you'll remember.
  4. Select OK.

Example: Change a part's name

AlarmClockView has multiple spin and push buttons. VisualAge assigned those parts names such as Spin Button1, Spin Button2, and so on. To make it easier to distinguish among parts that have similar names, you should rename them.

To change names of parts in AlarmClockView:

  1. Using mouse button 2, click on the Hour spin button. (For UNIX, use mouse button 3.)
  2. From the displayed pop-up menu for the part, select Change Name.
  3. In the displayed prompter, replace the default name that VisualAge assigned the part with the name:
    Hour
    
  4. Select OK.
    Name change window

Repeat these steps, renaming the following parts:

Part
New name
Minute spin button
Minute
Multi-line edit
Message
Set Alarm push button
Set Alarm button
Cancel push button
Cancel button


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