In the plugin I'm writing, I am adding VSPairs to my device with ControlType Radio_Option. The radio buttons show and work correctly but the labels are all showing the Value property instead of the Status string.
Did I create the VSPair improperly? Is there a way to get the labels to show the Status string?
Thanks,
Barrett
c# code:
Did I create the VSPair improperly? Is there a way to get the labels to show the Status string?
Thanks,
Barrett
c# code:
Code:
var pair = new VSVGPairs.VSPair(ePairStatusControl.Both) { PairType = VSVGPairs.VSVGPairType.SingleValue, Value = 1001.0, Status = "Choice 1", Render = HomeSeerAPI.Enums.CAPIControlType.Radio_Option, Render_Location = { Column = 1, Row = 1, ColumnSpan = 1 } }; hs.DeviceVSP_AddPair(devRef, pair); pair = new VSVGPairs.VSPair(ePairStatusControl.Both) { PairType = VSVGPairs.VSVGPairType.SingleValue, Value = 1002.0, Status = "Choice 2", Render = HomeSeerAPI.Enums.CAPIControlType.Radio_Option, Render_Location = { Column = 2, Row = 1, ColumnSpan = 1 } }; hs.DeviceVSP_AddPair(devRef, pair);
Comment