Tutorial for Designer/2000
Lesson 9, page 3
- We will now create radio buttons for the FTPT_Status to give the user an option of creating either Full-Time or Part-Time.
- To do this, right click on the FTPT_Status field in the canvas view and go to its Property palette. (See Figure 9.18)
Figure 9.18: Selecting the Property Palette for the FTPT_Status field
- Change the item type from text to Radio Group and set the initial value to either FT or PT. Close the Property Palette by clicking the close button on the upper right hand corner. (See figure 9.19)
Figure 9.19: The Property Palette for FTPT_Status
- Once you return back to the canvas, you will realize that the data field for the FTPT_Status is no longer visible. This is because we have specified it to be a radio group and not a text item. To see them, we will have to insert radio buttons. Select radio button from the tool palette on your left. (See Figure 9.20)
Figure 9.20: The palette with the icon for the radio buttons
- Drop the radio button into the canvas. Immediately a window will appear, prompting you to select the radio group you would like to attach this radio button to. Select the radio group FTPT_Status. (See Figure 9.21)
Figure 9.21: The Window for Attaching the radio button to a radio group
- Now right click on the radio button and go to its Property Palette. Change the label of the button to 'Full_Time', change background color to gray and give the radio button a value of FT. (See Figure 9.22)
Figure 9.22: The Property Palette for the radio button
- In the same manner create a second radio button, attach it to the radio group FTPT_Status, give it a label of 'Part-Time' and a value of PT.
- Select a rectangle from the palette and draw it around the radio buttons. (See Figure 9.23)
Figure 9.23: The Rectangle Icon in the palette
- Go to the properties for the rectangle frame by right clicking on it, and change the fill pattern to none. (See Figure 9.24)
Figure 9.24: Selecting the Property Palette for the rectangle frame
- Now, click on the rectangle frame and select FormatBevelLowered to format the frame. (See Figure 9.25)
Figure 9.25: Formatting the Rectangle Frame around the radio buttons
- You can now test your form by selecting ProgramRun Form. Your form with the newly created radio buttons should now look like Figure 9.26.
Figure 9.26: The form with the newly created radio buttons
- We will now create a drop-down poplist for the variable Start_Sem that will contain four entries: Fall, Spring, Summer 1 and Summer 2. To do this, go to the Property Palette for the Start_Sem and change its item type from text to list items, and select type of list as poplist. (See Figure 9.27). Close the Property Palette to return to the Canvas View by clicking on the close button in the upper right hand corner
Figure 9.27: The Property Palette for List Item
- Click on the List Elements tab and type in the list elements and list values. In this lesson, the list elements and values will be same and will be Fall, Spring, Summer 1 and Summer 2. (However, in the values, Summer1 and Summer2 should be typed in without spaces). (See Figure 9.28)
Figure 9.28: The Window for the List Elements
- Now go to Programs Run Form to view your newly created Poplist. (See Figure 9.29)
Figure 9.29: Window with the Poplist on Start_Sem
On to page four
Page 1, Page 2, Page 3, Page 4 / Back to the tutorial index.
About the Book
©1999 Prentice-Hall, Inc., A division of Pearson Education, Upper Saddle River, New Jersey 07458 Legal Statement
Comments should be directed to email@example.com