Warning: main(/www/www/htdocs/style/globals.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptmultilines_t.html on line 1
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/globals.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptmultilines_t.html on line 1
Warning: main(/www/www/htdocs/style/header.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptmultilines_t.html on line 8
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/header.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptmultilines_t.html on line 8
Structure for setting multiline text and attributes
typedef struct
{
char * string;
char * font;
PgColor_t text_color;
PgColor_t background_color;
} PtMultiLines_t;
This structure is used to specify multiline text and its attributes.
You can pass an array of these structures to the
PtMultiText widget's
Pt_ARG_MULTITEXT_SEGMENTS
resource.
The members include:
- string
- The UTF-8 text string to display.
- font
- The font used to render text.
This must be specified as the name of an existing font or as
one of the following special values:
- Pt_INHERIT_FONT
- Use the same font as the previous range.
- Pt_DEFAULT_FONT
- Use the value of the Pt_ARG_TEXT_FONT resource.
|
To make text bold/italic, change the font to a bold/italic typeface. |
- text_color
- The color used for the text.
This must be set to a valid color (i.e. a
variable of type
PgColor_t
— see the Photon Library Reference)
or one of the following
special values:
- Pt_INHERIT_COLOR
- Use the same color as the previous range.
- Pt_DEFAULT_COLOR
- Use the value of the Pt_ARG_COLOR resource.
- background_color
- The color used as a background for the text.
This must be set to a valid color (i.e. a
variable of type PgColor_t) or one of the following
special values:
- Pt_INHERIT_COLOR
- Use the same color as the previous range.
- Pt_DEFAULT_COLOR
- Use the value of the Pt_ARG_FILL_COLOR resource.
Photon
PtMultiText,
PtMultiTextAttributes_t
PgColor_t
in the Photon Library Reference
Warning: main(/www/www/htdocs/style/footer.php) [function.main]: failed to open stream: No such file or directory in /www/www/docs/6.4.1/photon/widget_ref/ptmultilines_t.html on line 180
Warning: main() [function.include]: Failed opening '/www/www/htdocs/style/footer.php' for inclusion (include_path='.:/www/www/common:/www/www/php/lib/php') in /www/www/docs/6.4.1/photon/widget_ref/ptmultilines_t.html on line 180