Attributes and Geometry

Access


Purpose

The following table provides a description of each attribute and geometry value. Not all are used by all objects. The table lists the attributes at the top in alphabetical order. The geometry values follow the attributes.

Resource Description Guidance
Attributes
alignment The horizontal placement of the label in a label object.  
background The color of an object's background. To display the Color editor, click in the colored rectangle. See The Color Chooser.
Class The class from which the object is derived. The class cannot be changed.
editable Determines if a text area or field can be edited.  
enabled Determines if an object is active, e.g. an enabled button responds to a user click.  
foreground The color of an object's foreground, e.g. the color of text. To display the Color editor, click in the colored rectangle. See The Color Chooser.
font Specifies the family, style, and size of a font.  
Instance Name The name of the object. Initially assigned by the system. Each object must be uniquely named. If you type a name that already exists in the project, Cosmo Code sets the name back to the previous value.
Note that the instance name is different from the label that appears on a button or label object.
label The label displayed on a button or label object. Note that the label resource is different from the instance name.
layout Determines the layout used by a panel object. Null and FlowLayout are the available choices. See Layout Managers for information.
lineIncrement The value a slider should move when the user clicks the up or down arrow in a scrollbar or presses the up or down arrow key.  
pageIncrement the value a slider should move when the user clicks in the trough of a scrollbar or presses the page up or page down key.  
state Indicates whether or not a checkbox is checked.  
text Shows the text of a text object.  
value The location of the slider in a scrollbar.  
visible Determines if an object is visible in the interface.  
Geometry
x the x location of the object's upper-left corner. These values have no meaning for objects contained in a panel with a specific layout, such as FlowLayout.
y the y location of the object's upper-left corner.
width the width of the object.
height the height of the object.

Guide to the Cosmo Code Development Environment
12-96*517