External control has a bug with radio boxes.... if you attempt to set a value in a radio box, the other buttons are not deselected.... here's a patch:
The patch is in
kaptain.cpp::Kaptain:select_it(int sel) ....
Change original code: (71 & 72)
<pre>
if (im->is(is_radioparent))
{
for (child=children.first(); child; child=children.next())
{
if (item==sel)
break;
item++;
}
if (!child) child=children.first();
child->radio_select(true);
}
</pre>
To this:
<pre>
if (im->is(is_radioparent))
{
for (child=children.first(); child; child=children.next())
{
if (item==sel)
break;
item++;
}
if (!child) child=children.first();
for (item=0, child=children.first(); child; child=children.next())
{
if (item==sel)
child->radio_select(true);
else
child->radio_select(false);
item++;
}
}
</pre>
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
External control has a bug with radio boxes.... if you attempt to set a value in a radio box, the other buttons are not deselected.... here's a patch:
The patch is in
kaptain.cpp::Kaptain:select_it(int sel) ....
Change original code: (71 & 72)
<pre>
if (im->is(is_radioparent))
{
for (child=children.first(); child; child=children.next())
{
if (item==sel)
break;
item++;
}
if (!child) child=children.first();
child->radio_select(true);
}
</pre>
To this:
<pre>
if (im->is(is_radioparent))
{
for (child=children.first(); child; child=children.next())
{
if (item==sel)
break;
item++;
}
if (!child) child=children.first();
for (item=0, child=children.first(); child; child=children.next())
{
if (item==sel)
child->radio_select(true);
else
child->radio_select(false);
item++;
}
}
</pre>