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

Re: [MiNT] Generic tool



Am Mo, 6.12.2010, 18:47 schrieb Peter Slegg:
> I've made some progress with the tool but annoyingly I can't get
> radio buttons to attach to a variable (DFRM).

you could manage the chaining for yourself... Just create an linked list
with elements like this:

struct ui_element_data
{
 int rsc_index;
 OBJECT * tree;
 void * corresponding_xml_node_and_stuff_like_that;
}

struct ui_element
{
 struct ui_element * prev;
 struct ui_element * next;
 struct ui_element_data data;
}

The callback always reports rsc_index and the tree to your callback. You
just need to add an new entry to the linked list when creating an new DFRM
gui element :)

-- 
Greets