Creating Dialogs (Komodo Pro)When you invoke the Add New Dialog or the Edit Dialog menu option in Komodo, it launches ActiveState's GUI Builder. GUI Builder is an application used to create graphical user interfaces, such as dialogs containing radio buttons, listboxes, etc. The GUI Builder contains many of the standard user interface widgets, such as buttons, checkboxes and dialogs. After you create the interface, GUI Builder will generate the code and place it in the Komodo editor pane. This section describes invoking the GUI Builder from within Komodo; instructions for using the GUI Builder can be invoked from within the GUI Builder itself. Creating a New DialogDialog projects can be added to a project in the Project Manager, or to the Toolbox. In the Project Manager, right-click the project name or a folder within a project and select Add New Dialog. Alternatively, from the menu, select Project | Add to Project | Add New Dialog. In the Toolbox, right-click in an empty part of the frame, or right-click a folder, and select Add New Dialog. When you invoke the GUI Builder, you will be prompted for the following information:
After specifying the options described above, the GUI Builder will load. When you save a new dialog in the GUI Builder, the following items will be created in either the Toolbox or the Project Manager (depending on where the Add New Dialog command was invoked):
![]() Adding Code to a DialogTo modify the functions within the dialog, open the Dialog.language file, (where "Dialog" is the name of the project, and "language" is the standard language suffix) located beneath the dialog project file. Do not edit the Dialog_ui.language file, as this file is automatically generated by the GUI Builder, and therefore any changes you make could be lost. Code entered within the following section will be preserved even if the dialog is subsequently modified;
![]() Modifying an Existing DialogTo modify the graphical properties of the dialog, right-click the project file (with the ".ui" extension) and select Edit Dialog. This will launch the GUI Builder and load the project. Code within the sections described above will not be affected by modifying the graphical properties of a dialog. ![]()
|