|
|
|
|
SynopsisCreates a frame. Syntaxadd_frame( [ChipsId,][attributes]); add_frame( [ChipsId,] x1, y1, x2, y2 [,attributes]); Description
The add_frame command creates a frame whose attributes are specified by user preferences or in an attribute list. The new frame becomes current by default; providing a ChipsId overrides the currency state. The frame takes up the full size of the window in which it is created, unless the corner values (x1, y1) and (x2, y2) are supplied. Customizing the FrameThere are several attributes that control the frame characteristics. The attributes can be set to the ChIPS defaults, values provided in the add_frame command, or values from the user's preference file. The attributes may also be modified with the set_frame command at any time; see "ahelp set_frame" and "ahelp setget" for more information. The attributes associated with frames are:
Example 2
chips> add_frame( .1, .1, .4, .7, "bgcolor=red");
chips> add_frame({"bgcolor", "red"});Create a frame with the lower left corner at (.1,.1) and the upper right corner at (.4,.7); the frame background color is set to red. A second frame is created, specifying the attributes and values in a list. Example 3chips> id = ChipsId(); chips> add_window( "id=MM300500"); chips> add_window( "id=Window2"); chips> id.window = "MM300500"; chips> add_frame(id); Use the ChipsId structure to indicate to which window the new frame should be added. Example 4chips> settings = ChipsCurve; chips> settings.bgcolor = "red"; chips> add_frame(settings); Populate the "settings" structure with the attribute values, then add a frame. BugsSee the bugs pages on the ChIPS website for an up-to-date listing of known bugs. See Also
|
![]() |
The Chandra X-Ray
Center (CXC) is operated for NASA by the Smithsonian Astrophysical Observatory. 60 Garden Street, Cambridge, MA 02138 USA. Email: cxcweb@head.cfa.harvard.edu Smithsonian Institution, Copyright © 1998-2004. All rights reserved. |