[ Home | Syllabus | Course Notes | Assignments | Search]
Assignment 2: Dialog Box
Description: This program will allow the user to display shapes with text inside, delete those shapes or move any rectangle to a new location on the screen. To create or delete a shape, the user makes a selection in a menu containing the following menu items:
"new" menu item, when selected a dialog box will appear with the following features:
A set of radio buttons for the color of the rectangle (red/green/blue)
A set of radio buttons for the shape (rectangle, ellipse, line)
A text box for entering a label with the shape
A check box which if checked will change border of the shape to a dashed line
Selecting "OK" for the dialog box will create a new item with the selected features. The shape label will be displayed inside the rectangle or ellipse and underneath the line.
"delete" menu item. when selected the next shape the user clicks on will be selected for deletion. However the program ask the user to confirm that the shape is to be deleted displaying the text associated with the selected shape. If the user confirms the deletion, the shape and its associated text are deleted.
In addition to the above actions, the user can move a shape, the used first selects which shape to move (no menu item is needed), then selects its new destination. The shape and its text will be moved to the new location.
Due: Feb. 23rd midnight
FUNCTIONAL REQUIREMENTS:
IMPLEMENTATION REQUIREMENTS: