Radio Buttons?
by Jaimi McEntire · in Constructor · 05/08/2007 (3:24 pm) · 1 replies
Is there a way to create Radio Buttons in the Plugin::Interface function?
I've already tried the obvious:
%form.addField( -1, "Roof", "divider");
%form.addField( 15, "8 in 10", "radiobutton");
%form.addField( 16, "6 in 10", "radiobutton");
%form.addField( 17, "Percentage", "radiobutton");
But I recieve this error:
DC::BuildControl(): Could not build control of type 'radioButton'
It's possible to get the functionality with a popup, but it makes the GUI look wrong (with various detached edit boxes under the popup)
I've already tried the obvious:
%form.addField( -1, "Roof", "divider");
%form.addField( 15, "8 in 10", "radiobutton");
%form.addField( 16, "6 in 10", "radiobutton");
%form.addField( 17, "Percentage", "radiobutton");
But I recieve this error:
DC::BuildControl(): Could not build control of type 'radioButton'
It's possible to get the functionality with a popup, but it makes the GUI look wrong (with various detached edit boxes under the popup)
Associate Jaimi McEntire
King of Flapjacks
%form.addField(12,"Roof Slope", "radio");
%form.addFieldListItem(12,"6 in 10");
%form.addFieldListItem(12,"8 in 10");
%form.addFieldListItem(12,"10 in 10");
%form.addFieldListItem(12,"Specify Height");
The %value of the control will be 0 based (in this example, the possible values are 0,1,2,3).