Getting Started | Documentation | Glish | Learn More | Programming | Contact Us |
Version 1.9 Build 1556 |
|
Package | display | |
Module | guiutils | |
Tool | guiframework |
title | Window title | ||
Allowed: | Any string | ||
Default: | AIPS++Window | ||
menus | menu records | ||
Allowed: | Glish menus records | ||
Default: | Default file and options menus | ||
helpmenu | help record | ||
Allowed: | Glish help menu record | ||
Default: | Default help menus | ||
actions | Action record | ||
Allowed: | Glish action record | ||
Default: | Default action buttons | ||
guiframenote | note function | ||
Allowed: | any note function | ||
Default: | note | ||
parent | Parent frame | ||
Allowed: | Frame to attach guiframework | ||
Default: | F |
The guiframework provides a consistent look and feel GUI for gui applications that use it. With it you can specify standard menus, help and actions.
If the parent frame is F guiframe work will generate the top-level frame.
Often we need to change the state of button, grey it, change a button label or the like. Rather than provide lots of guiframework functions to do these things, there is a backdoor using the app record. The app datamember of guiframework contains all the GUI elements defined by a guiframework. The scheme
The record app.mb.btns contain all the buttons in the menubar, a button is identified by the menu name and the menu item name. For example the 'file' menu is identified app.mb.btns.file, the open option on file is app.mb.btns.fileopen, menu items concatinated the menu name and menu item name to identify themselves.
Action buttons belong to the app.cmd.b record. A go action would be app.cmd.b.go.