On Sat, May 09, 2009 at 09:48:11PM +0200, Andreas Krinke wrote:
> jyoti wrote:
> > I need to get the state of checkbutton and radiobutton i.e. whether it is 
> > selected or not . I have not found any such method in agar. pls help.
> 
> Look at checkbox.c in the agar/gui folder.
> <snip>
> You need AG_WidgetGetBinding().

Outside of the internal widget implementation, I would not expect user code
to retrieve widget states using AG_WidgetGetBinding(). The typical usage for
these widgets would be to either bind to some integer, for instance using
AG_RadioNewInt(), or if it is necessary to use an event handler, to retrieve
the argument to "radio-changed".


_______________________________________________
Agar mailing list
[email protected]
http://libagar.org/lists.html

Reply via email to