1 - Using the ebm Form Editor, Part 2(download tutorial source .zip file)
(download tutorial program .seb file only)
(In part one, we looked at getting the ebm Form Editor up and running, and creating a sample program. Part two now focuses on integrating the Editor output into a working program.)
The Form Editor is designed to assist with the visual placement of objects in the Franklin eBookMan programming environment. But it's only when it is combined with your code that the real action begins, so the Editor was designed to allow easy integration of form design code and program code, while maintaining ease of use.
The output of the Form Editor consists of a header file (*.h) and a source file (*.cpp) for each form, or window. These files provide all that is needed for the initialization of the display portion of the form. However, the form does very little, since the only action it responds to is the close button to exit, which is a built in response.
At the very least, a typical form will require more initialization code (such as setting up variables, or initializing objects, such as a rectangle's color) To do that, it's object code has to be expanded upon. The Form Editor comes with options to provide that.
|Copyright © 2001-2006 ebmDevMag.com - Legal Notice|