Retrieves the attribute value(s) of the frame.
get_frame();
get_frame(id [,attribute]);
-
id - an optional ChipsId structure containing values to
modify the currency state for the command or a string id to
specify the frame.
-
attribute - a string containing the name of the attribute to
retrieve
The get_frame command returns a structure containing all the
attribute values of the
frame. To retrieve the value of a specific attribute, provide
the attribute name and the id or ChipsId of the object.
Some values are set to "None" in the returned structure.
These entries generally correspond to attributes which may
only be modified at creation time, such as the object id.
The attributes associated with frames are:
| bgcolor |
Background color of the frame |
| border.color |
Color of the frame border |
| border.visible |
Boolean flag indicating if the frame border should be visible |
| scale |
Boolean flag indicating whether labels should scale if frame changes size |
| transparency |
Boolean flag indicating whether any object behind the
frame is visible |
To see if a frame or frame border is hidden or visible, use the
get_frame_visible and get_frame_border_visible commands.
The module of advanced ChIPS functions contains other commands
for retrieving attribute values (refer to "ahelp chips" for
information on loading the module):
get_frame_bgcolor
get_frame_border_color
get_frame_scale
get_frame_transparency
chips> add_frame;
chips> print(get_frame());
chips> print(get_frame("frm1","bgcolor"));
A frame is created and becomes current. Calling get_frame with no argument returns all the attributes of the object. get_frame is called a second time to return just the "bgcolor" attribute.
chips> add_frame( .1, .1, .4, .7, "bgcolor=red");
chips> add_frame({"bgcolor", "red"});
chips> print(get_frame("frm1"));
Two frames are created. get_frame is called with the id of the first frame, returning all attributes.
chips> id=ChipsId();
chips> id.frame="frm1";
chips> print(get_frame(id));
A ChipsId structure is created and the id.frame field is set to "frm1".
get_frame is called with the ChipsId.
chips> frmatt=get_frame;
chips> print(frmatt);
Retrieve a structure containing the attribute values of the current
frame and store the results in "frmatt". Print the contents of "frmatt".
- sl.chips
-
add_frame,
arrange_frames,
blink_frames,
current_frame,
delete_frame,
display_frame,
erase,
get_object_count,
hide_frame,
move_frame,
next_frame,
reposition_frame,
set_current,
set_frame,
setget,
tile,
view_placed_frame,
view_single_frame
|