Re: setting radiogroup items dynamically?

Phil Edwards <[email protected]>
Newsgroups gmane.comp.python.pythoncard
Message-ID <[email protected]>
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

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.