Site hosted by Angelfire.com: Build your free website today!
Code Assistant - Custom Forms
Custom Forms are made available where they can simplify the generation of code. There are many custom forms contained in Code Assistant. Two examples are given below. The first example is for Java source code, and allows the user to generate code for dealing with the BufferedImage class simply by selecting the desired actions from a flowchart. Selections are made on the flowchart and Code Assistant generates the code. The generated code is simple because it relies on the ImageTool class, a class created specifically for Code Assistant for handling images.
First example: Java code generated from a flow chart.
This form ...
... generates this code:
In this second example, Visual Basic source code is created from a custom form designed to quickly create code for generating Common Dialog Boxes. Typically, the most difficult aspect of Common Dialog boxes is setting up the filters due to the exacting syntax requirements. This form does it perfectly with only 4 clicks of the mouse (see checkboxes below). In this example, three kinds of text files form the (one) filter in an "Open File" Common Dialog Box, although this form will handle many filters, plus it handles all 5 Common Dialog types (Open File, Save File, Color, Font, and Print, although its appearance changes for each type). At the bottom of the form, text explains the various checkboxes when the mouse moves over them. The example below shows the explanation for the "Explorer" checkbox.
This form ...
... generates this code:
... which when run, produces this dialog box: