[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [MiNT] Generic tool



On Fri, 3 Dec 2010 18:59:44 , "m0n0" <ole@monochrom.net> wrote:
>
> Am Fr, 3.12.2010, 16:28 schrieb Peter Slegg:
>
> >  dfrm_attach( dial, child, BIND_FUNC, wCheck); /* attach the button to
> > wCheck  */
> >
> > but my dialogue is dynamic so I will need to be able to pass a parameter
> > to wCheck so that each button does something different. I really hope that
> > DFRM allows this.
>
> I believe the prototype of the BIND_FUNC looks like this:
> void func(WINDOW *win, int index);
>
> You already get the info which button was pressed. I guess index is the
> resource id of the button - so you need to keep track of the button
> indexes...
>
> Greets,
> m

I think I have just found the way to do this:

http://windom.free.fr/doc/c_070f01.html

It looks like I can attach a variable that will tell me what items
are selected :-)

Regards,

Peter