In the interest of preserving as much separation of content and
presentation as possible, you can't directly change the colors or
background of widgets. You can, however, assign them a customized theme
object. For example, to change a label's foreground color you could use:
pgSetWidget(wMyLabel,
PG_WP_THOBJ, pgFindThemeObject("myApp.myLabel"),
0);
...assuming that in your theme file you have:
object "myApp.myLabel" {
parent = PGTH_O_LABEL;
fgcolor = 0x0000FF;
}
Hope that helps :)
On 2002.01.16 09:37 okan wrote:
> Hi all,
> Can I change the color of the label in a button,background color
> or
> a label color in a window at runtime? I dont mean the canvas color...
> Thanks,thanks,thanks.....
>
>
> _______________________________________________
> Pgui-devel mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/pgui-devel
>
_______________________________________________
Pgui-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/pgui-devel