Presentation is loading. Please wait.

Presentation is loading. Please wait.

Extend Text Editor to Draw shapes

Similar presentations


Presentation on theme: "Extend Text Editor to Draw shapes"— Presentation transcript:

1 Extend Text Editor to Draw shapes

2 Add Shape to text editor main menu then add to shape menu the items in the following figure and add text box to Draw text item

3 Define the following attributes in class TextEditor

4 Create graphic and pen objects in the constructor

5 Write event handler for items inn shape menu: rectangle, ellipse, line and erase

6 Write event handler for items draw text, return to text and actor then write event handler to Document Mouse Down event

7 In Document Mouse Up event handler write the following code

8 In Document Mouse Down event handler write the following code

9 Run the program and test all shape menu items


Download ppt "Extend Text Editor to Draw shapes"

Similar presentations


Ads by Google