Form Builder and App Builder BASIS RAD Tools
Form. Builder and App. Builder BASIS RAD Tools Nico Spence, Chief Marketing Officer Jon Bradley, Software Engineer BASIS International Ltd. © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Overview ► ► ► ► Introducing Form. Builder and App. Builder Using the RAD tools • Building a font chooser • Creating code blocks Customizing code profiles Creating a file management utility • Binding record sets to controls Incorporating validation Enabling the pre-processor Summary © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Introduction ► Form. Builder creates/edits. arc files • • ► App. Builder creates/edits. gbf files • • • ► Functional super-set of Res. Builder Resource file presents a GUI interface to the user with graphical controls Functional super-set of GUIBuilder. gbf files specify code blocks linked to event handlers Generates BBj program source and tokens Integrated with each other © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Advantages ► Integrated • Simultaneous edit of GUI screen controls and code fired by their events ► Cross Platform • Edit. arc and. gbf files anywhere BBj runs ► WYSIWYG Interface • What You See Is What You Get • Child Windows rendered in Top. Level. Windows • Look and feel of IDE or Visual PRO/5 legacy L&F © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Using the Tool ► Building • • a Font Chooser Build the form with child windows and tabs Add code blocks Create a menu Add Events and associate code with Code Editor Save file Build source and tokens Run program © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Form. Builder Demonstration © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Building a Font Chooser Child Window © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Building a Font Chooser Tabs © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Update Font Code Block © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Code Profiles Code pre-pended to code block for event handler ► Specified in the Default Code Profile ► Profile can automatically add an event handler for specific events on a given control type ► © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Code Profiles Demonstration © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Record Sets ► BBj. Record. Set • Set of records § From a data file via a string template § SQL select query • Maintains a pointer to the current record • Provides method to insert, update, delete, and move between records • Often bound to one or more data-aware GUI controls © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
File Maintenance Utility ► Use new RAD tools to create a simple file maintenance utility • • ► Uses record sets Navigator control Apply validation rules – special circumstance • • Fields Forms Enabling the mouse scroll event ► Adding Images – the image bucket ► © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Demonstration © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Extending the RAD FMU Masked Events © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Extending the RAD FMU Mouse Scroll Code gb__event! = bbjapi(). get. Sys. Gui(). get. Last. Event() gb__control! = gb__event!. get. Control() direction = gb__event!. get. Scroll. Direction() if(direction) navigator!. get. Target. Record. Set(). next(err=*next) else navigator!. get. Target. Record. Set(). previous(err=*next ) endif © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Extending the RAD FMU Form. Builder Renders Images © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Image Bucket Resolves the Development vs. Deployment directory structure problem ► Develop with your images in one place ► Deploy with the images in your prefix ► Image Bucket has no effect on. arc or. gbf file; exists to display images at development time ► © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Image Bucket Demonstration © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Pre-Processor ► App. Builder • • provides a pre-processor User programmable in BBj Example of easy string-literal substitutions by adding a pre-processed Message. Box ► Add KEY_PRESS event to Form 101 ► Add code to switch ► Edit pre-processor source file <install>/appbuilder/app_gb_pre_processor. src © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Pre-Processor Demonstration © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Pre-Processor Demonstration © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Context Sensitive Help © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Review Introduced Form. Builder and App. Builder ► Used the RAD tools ► • • Built a font chooser Created code blocks Customized code profiles ► Created a file management utility ► • Bound record sets to controls Incorporated validation ► Enabled the pre-processor ► © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
Summary ► Added function and integrated tools ► Benefits • Tenfold reduction in development time • Investment in old code preserved • Backward compatible • Intuitive interface • Facilitates rapid application prototyping • Employee satisfaction enhanced © 1985 -2006 All rights reserved. U. S. 1. 800. 423. 1394 International +1. 505. 338. 4188 Tech Support +1. 505. 345. 5021 sales@basis. com www. basis. com
- Slides: 25