Template:TextFieldProperties
string Text
The text to be displayed.
float TextHeight
The text height in units of text field height. Typically, this would be between 0.6 and 0.8.
RGBColor TextColor
The color used to draw text.
RGBColor Color
The text field's background color.
GraphDisplay Display (r)
The GraphDisplay object that was specified when the object was created.
bool Visible (r)
True if the object is visible, false if it is hidden. Use the Hide() and Show() methods to set this property.
float ZOrder (rw)
Determines the order in which GraphObjects are drawn. GraphObjects with smaller values of ZOrder are drawn on top of those with larger values, hiding these.
enum ScalingMode (rw)
One of the following options:
- AdjustNone
- No adjustment is made.
- AdjustWidth
- The object's width is adapted to its contents, while keeping its height constant.
- AdjustHeight
- The object's height is adapted to its contents, keeping its width constant.
- AdjustBoth
- Both the object's height and width are adjusted to its content.
The exact behavior of aspect ratio adjustment depends on the object's type. E.g., for bitmap images, AdjustBoth will size the image such that one image pixel corresponds to one screen pixel; AdjustHeight and AdjustWidth will adjust such that the original aspect ratio is preserved.
GUI::Rect ObjectRect (rw)
The bounding rectangle of the space that defines the object. This is given in coordinates relative to the size of the object's GraphDisplay; there, the upper left corner corresponds to (0,0), the lower right corner to (1,1). When a GraphObject is created, its object rectangle is empty.
GUI::Rect DisplayRect (r)
The bounding rectangle of the space that is occupied by the object. This is given in coordinates relative to the size of the object's GraphDisplay; there, the upper left corner corresponds to (0,0), the lower right corner to (1,1). Depending on the object, the display rectangle may be identical to the object rectangle, or may be larger than that. E.g., this is the case when the object has a frame that extends beyond the object rectangle; this frame will be taken into account by the display rectangle. When a GraphObject is created, its display rectangle is empty.