取消
显示结果 
搜索替代 
您的意思是: 

Dynamically populate an array of checkbox controls

I am having trouble programming my application and am unable to find any example code on the support site. I would greatly appreciate any help.

I have a 1-D array of string (Channel Name) and a 2-D array of double (data for each channel). I want to create a form that has a series of check boxes on the left which has the "Channel Name" in the Boolean Text field. To the right of the check box will be a graph of the data which corresponds to the channel. The # of channels will be variable (1 to 5), so I need to be able to dynamically create the controls and overwrite the properties. I tried to create an array control and fill it with Boolean DialogCheckBox controls as elements. I however haven't been able to change the l
abel for each individual checkbox element.

The purpose of the form is to allow the user to choose 1-5 channels of data to process.

I appreciate any help.

Thanks,
Ravi Ghanta
0 项奖励
1 条消息(共 3 条)
3,956 次查看
You should use an array of clusters containing a string for the channel name and the check box. This is the only way I see to work with an array of independently named elements.
Does this help ?
Chilly Charly    (aka CC)
2 条消息(共 3 条)
3,956 次查看
Hi Ravi,

You cannot change the label for a checkbox element programmatically. Try changing the caption instead. Use the Caption.Text property of the checkbox.

Regards,
Ankita A.
3 条消息(共 3 条)
3,956 次查看