| Home | Why Omnibasic | Features | FAQ | Examples |
|---|---|---|---|---|
| Reviews | Keyword/Syntax | On-Line Manual | Download Manual | ScreenShots |
Chapter 2Integrated Development Environment (IDE) OverviewStarting the program The IDE is designed to be a quick and easy-to-use tool for creating the Graphical User Interface (GUI) for your application. When you start the program it will create four windows. Control Center The Control Center appears at the top of your screen. The Control Center is used to set-up your project and enable the various functions of the program.
The top row of the Control Center contains the drop down menu area for the file handling, program viewing, other options and the Help system. The second row of the Control Center has icons for file handling, printing, compiling and display setup. The third row of the IDE displays the various objects that can be automatically dispensed onto the development form. Objects can either be dropped onto the development form from this area in a What You See Is What You Get (WYSIWYG) mode, or they can be programmatically entered into the program. To drop an object on the development form, you double-click on the dispenser button and the object will appear on the upper left hand corner of the form. Properties WindowThe Properties Window displays the default settings that will be used for the object that is currently selected. Selected objects are represented by the four black squares in the corners of the object. If no objects are selected then the Properties Window will display the default properties of the development form window.
The Properties Window shows the default settings that will be used by the object that is shown. The top line is a drop down combo box that shows all of the objects that are on the development form. You can select the object that is being displayed by either clicking upon the object on the development form window or by selecting the object from the drop down list. The following list breaks down the properties of the Properties Window:
Editor WindowThe editor window allows the programmer to set up a structured program and will also display the OmniBasic Code that will be generated to create the development form window and the objects on the window.
You can write unstructured code by choosing Console Project or Graphical Script Project. With this choice all of the program code is available in a single edit window. There is no option for other modules. You can write structured code by choosing Graphical Project. In a Graphical Project there are five sections to the program:
The editor displays the current cursor position at the top of the program. Array Editor WindowThe array editor is a powerful tool that allows the programmer to place an array of objects on the screen and dynamically adjust the position, size and spacing of the objects. Arrays of objects are useful in cases where there is a grouping of objects that share functionality. For example, if you wanted to create a numeric keypad, you could do that by dropping ten individual buttons onto the development form and then creating event programming for each individual button. With an array of buttons using the array editor you can place all 10 buttons simultaneously and adjust the layout for the buttons as a group. Then you process a single event for all 10 buttons and use the system variable OBSel to determine which button was pressed. Right-click on the object in the Control Center to access the Array Editor.
In the case of our ten buttons, when you click on Button1(2), you will trigger a Click event for Button1 and then the OBSel system variable will have the number 2 to correspond to the button within the array that was clicked. Example: You have used the Array editor to create an array of two buttons named Button1. In the Declaration Module you have dimensioned A and B as String variables. In the Event Module of the editor you can create the following Code:
The TextField1 will add whatever button was clicked on from the array to the currently displayed text. When the array editor is active, you can create new arrays by entering a new object name into the Array Name field or you can edit preexisting arrays by typing in the name of the existing array. This feature is like a sharp knife; in the wrong hands it can make a bloody mess, but when used with care it can be an invaluable tool for adjusting the appearance of the program. Expert ModeIn addition to the ability to compile an OmniBasic project into a fully functional executable program, there is the functionality to create intermediate forms in the output. To enable this capability, click on the Option menu and select “Expert Mode”. This will enable three additional compile icons on the toolbar. These are:
The “Compile to CPP” command causes the IDE to create a .cpp file,
which is useful to see the code, which OmniBasic has generated at the C level. With the ability to intermix OmniBasic, C, C++, and assembler code at the Source level as well as the ability to produce the intermediate outputs described above, OmniBasic is unparalleled in its utility to the experienced programmer. Equally unique is the ability to present a simple interface to the beginning programmer or those who simply don’t need the advanced features. The Option menu also has a “Symbol Table” entry, which, if checked, causes a Symbol Table dump to appear on the Status Window when the compile is complete. |
Home || Why Omnibasic || Features || FAQ || Examples
Reviews || Links || Privacy Statement || Top of Page
Innomation Systems, Inc.
117 Morrison Ave. Morrison, MO 65061 (573) 294-6130
OmniBasic is a
trademark of Innomation Systems, Inc., other trademarks are the property of their
respective owners.
Innomation Systems, Inc. reserves the right to change prices and specifications without prior notice.
Copyright © 2000, 2001, 2002 Innomation Systems, Inc.