Getting Started Documentation Glish Learn More Programming Contact Us
Version 1.9 Build 1556
News FAQ
Search Home


next up previous contents index
Next: guiframework.busy - Function Up: guiframework - Tool Previous: guiframework - Tool


guiframework - Constructor



Package display
Module guiutils
Tool guiframework


Constructs the GUI framework, menus, work area, etc...


Synopsis
guiframework(title, menus, helpmenu, actions, guiframenote, parent)


Arguments

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


Description

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.



Returns
A standard AIPS++GUI framework window




next up previous contents index
Next: guiframework.busy - Function Up: guiframework - Tool Previous: guiframework - Tool   Contents   Index
Please send questions or comments about AIPS++ to aips2-request@nrao.edu.
Copyright © 1995-2000 Associated Universities Inc., Washington, D.C.

Return to AIPS++ Home Page
2006-10-15