[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [MiNT] Generic tool
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