Download presentation
Presentation is loading. Please wait.
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
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.