From: Phil E. <ph...@li...> - 2007-10-24 12:58:15
|
Alex Tweedly wrote: >> >> Is there some other way to set the radiogroup items dynamically? >> > Very embarrassingly, I can't try this out right now, but you might get > it to work as > > self.components.myradiogroup.SetItemLabel(1,'choice1') > self.components.myradiogroup.SetItemLabel(2,'choice2') > etc. > Just tried that on my laptop and it works, with the proviso that you can't use this method to change the number of items in the group, i.e. if we tried to add a 3rd radio button by doing: self.components.myradiogroup.SetItemLabel(3, 'choice3') then this gets ignored. -- Regards Phil Edwards Brighton, UK |