"format"
Specifies text formatting.
Synopsis
setValue(string shape, "format", string fstring);
getValue(string shape, "format", string &fstring);
shape.format(string fstring);
Parameters
Parameter | Description |
---|---|
shape | Name of the object |
fstring | Format string |
Description
Sets or reads the format string (see Format string) of the text field.
Example
In the following example, the current format is displayed in the log viewer and then set to a three-character string.
main()
{
shape tf=getShape("textf1");
...
// Display current format
DebugN(tf.format());
// New format
tf.format("[3s]");
...
}
Assignment
Text field