13.5 Deleting Forms and ProceduresThe user will be able to delete forms and procedures in the main frame that are nolonger needed. This will be performed by selecting a node in the main frame windowand pressing the “Del” key or by selecting “delete” from the edit menu. The user willthen be prompted with a message box (YES, NO) asking for confirmation. YES putsthe functions in comments, NO cancels. The removal cannot be undone.This was accomplished using the following methods:When the delete key is pressed, the program finds the codename associated with thenode to be deleted (for example: “F1”). That codename is then used in conjunctionwith a predetermined list of functions (the ones that were created when the nodewas added), and then proceeds to place in comments all of those functions.In this manner, more forms and procedures can be added without causing anyproblems, and users will not lose any important algorithms that deleting the oldfunctions would cost them. All user created functions are left as is (not commented).13.6 Editing GraphicsOnce a graphics form is created, the user can add graphics to the form by right mouse clicking inthe tree view window and selecting Edit Graphics. A window will come up that is to be used as acanvas for adding graphics. The graphic information is stored as meta data in the projects NGXfile, this file was created from the baseline.ngx when the project was initially created.When the graphics are saved (i.e. the project NGX file is saved), the meta data is retrieved andused within the GOC file for implementing the respective graphics. For example, if a rectanglewas added to the graphics window, the following code might be generated:void projectF1ViewDraw( GstateHandle gstate ){/* {{projectF1 DRAW BLOCK}} */GrDrawRect( gstate, 100, 50, 30, 10 );/* {{END projectF1 DRAW BLOCK}} */}Choosing the Edit Graphics option presents the .NGX file in an editor. The Graphics menubaroption presents the several drawing options.