1 / 25

FormBuilder and AppBuilder BASIS RAD Tools

FormBuilder and AppBuilder BASIS RAD Tools. Nico Spence, Chief Marketing Officer Jon Bradley, Software Engineer BASIS International Ltd. Overview. Introducing FormBuilder and AppBuilder Using the RAD tools Building a font chooser Creating code blocks Customizing code profiles

duane
Download Presentation

FormBuilder and AppBuilder BASIS RAD Tools

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. FormBuilder and AppBuilderBASIS RAD Tools Nico Spence, Chief Marketing OfficerJon Bradley, Software EngineerBASIS International Ltd.

  2. Overview • Introducing FormBuilder and AppBuilder • 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

  3. Introduction • FormBuilder creates/edits .arc files • Functional super-set of ResBuilder • Resource file presents a GUI interface to the user with graphical controls • AppBuilder creates/edits .gbf files • Functional super-set of GUIBuilder • .gbf files specify code blocks linked to event handlers • Generates BBj program source and tokens • Integrated with each other

  4. 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 TopLevelWindows • Look and feel of IDE or Visual PRO/5 legacy L&F

  5. 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

  6. FormBuilderDemonstration

  7. Building a Font ChooserChild Window

  8. Building a Font ChooserTabs

  9. Update Font Code Block

  10. 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

  11. Code ProfilesDemonstration

  12. Record Sets • BBjRecordSet • 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

  13. 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

  14. Demonstration

  15. Extending the RAD FMUMasked Events

  16. Extending the RAD FMUMouse Scroll Code gb__event! = bbjapi().getSysGui().getLastEvent() gb__control! = gb__event!.getControl() direction = gb__event!.getScrollDirection() if(direction) navigator!.getTargetRecordSet().next(err=*next) else navigator!.getTargetRecordSet().previous(err=*next) endif

  17. Extending the RAD FMUFormBuilder Renders Images

  18. 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

  19. Image Bucket Demonstration

  20. Pre-Processor • AppBuilder provides a pre-processor • User programmable in BBj • Example of easy string-literal substitutions by adding a pre-processed MessageBox • Add KEY_PRESS event to Form 101 • Add code to switch • Edit pre-processor source file <install>/appbuilder/app_gb_pre_processor.src

  21. Pre-Processor Demonstration

  22. Pre-Processor Demonstration

  23. Context Sensitive Help

  24. Review • Introduced FormBuilder and AppBuilder • 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

  25. 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

More Related