Gambas program design works in terms of controls and containers. The outermost container is a form, and although programs can use several forms and even forms-within-forms, beginners will probably want to start with just one. This is created automatically and given the name FMain. The Gambas window showing the form also displays the form Properties on the right and a hierarchy of Modules, Classes, and Data on the left. Form properties include the name, border shape, background colour and whether the form is re-sizable.
Opening the Toolbox via the View menu brings up four tabbed panels with types of tools -- Form, Dialog, Container and Special. The Form controls include labels, text fields, buttons, check boxes, radio buttons, scroll bars, drop-down menus, etc -- all the standard elements of windows-style programs -- plus special-purpose panels for displaying directory lists, pictures, and movies. Any of these tools can be dragged out into a rectangle on the form to create an element of that type. The Dialog controls include standard dialog boxes for setting colours, dates, fonts, files and directories. The Container tools include standard vertical or horizontal layouts, and allow controls to be stored in frames or tabbed panels. They also include drawing areas for graphics and stepwise Wizard panels. Finally, the Special tools include a Timer, an Embedding tool for external controls, and a TrayIcon tool. Developers can add a menu through the Menu Editor, described in Part Two of this series.