On Wed, May 06, 2009 at 05:14:14PM +0530, jyoti goyal wrote:
> Hi
>
> I need to set the color of only a single button to some different value in
> my application.
> I tried using ag_style but that is changing the color of all the buttons
> ....How do I do it?
Color values used by the default theme are kept in a global array for
efficiency reasons. You could always manually render the text using
AG_Text(3) and pass the surface to AG_ButtonSurface(), like so:
AG_PushTextState();
AG_TextBGColorRGB(r, g, b);
AG_TextColorRGB(r, g, b);
AG_ButtonSurfaceNODUP(button, AG_TextRender("My label"));
AG_PopTextState();
_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html