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/lib_ref/pt/ptcreateclassstyle.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/lib_ref/pt/ptcreateclassstyle.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/lib_ref/pt/ptcreateclassstyle.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/lib_ref/pt/ptcreateclassstyle.html on line 8
Create a class style
PtWidgetClassStyle_t *PtCreateClassStyle(
char *name );
ph
This function creates a new class style and calls the style name.
A pointer to a new class style, or NULL if the wasn't enough
memory to create it.
This example is based on the one in
“Widget Styles”
in the Managing Widgets in Application Code chapter of the
Photon Programmer's Guide:
PtWidgetClassStyle_t *new_style =
PtCreateClassStyle("blue");
PtSetStyleMember( new_style, Pt_STYLE_DRAW,
blue_draw);
PtAddClassStyle( PtButton, new_style);
Photon
Safety: | |
Interrupt handler |
No |
Signal handler |
No |
Thread |
No |
PtAddClassStyle(),
PtDupClassStyle(),
PtFindClassStyle(),
PtGetStyleMember(),
PtGetWidgetStyle(),
PtSetClassStyleMethods(),
PtSetStyleMember(),
PtSetStyleMembers(),
PtSetWidgetStyle()
Pt_ARG_STYLE
resource of PtBasic in the
Photon Widget Reference
“Widget Styles”
in the Managing Widgets in Application Code chapter of the
Photon Programmer's Guide
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/lib_ref/pt/ptcreateclassstyle.html on line 120
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/lib_ref/pt/ptcreateclassstyle.html on line 120