秃鹰,
这是我使用的代码:
-
- radio : dialog { //dialog name
- label = "Existing Storm Sewers" ; //give it a label
- :boxed_radio_column_1 { //*define radio column
- label = "Choose a Type" ; //*give it a label
- :row{
- : radio_button { //*define radion button
- key = "T1" ; //*give it a name
- label = "Type &1" ; //*give it a label
- //value = "1" ; //*switch it on
- } //*end definition
- : radio_button { //*define radio button
- key = "T2" ; //*give it a name
- label = "Type &2" ; //*give it a label
- } //*end definition
- }
- :Row{
- : radio_button { //*define radio button
- key = "T3" ; //*give it a name
- label = "Type &3" ; //*give it a label
- } //*end definition
- : radio_button { //*define radio button
- key = "T4" ; //*give it a name
- label = "Type &4" ; //*give it a label
- } //*end definition
- }
- } //*end radio column
-
- :boxed_radio_column_2 { //*define radio column
- label = "Choose a Size" ; //*give it a label
- :row{
- : radio_button { //*define radion button
- key = "S1" ; //*give it a name
- label = "1500mm" ; //*give it a label
- //value = "1" ; //*switch it on
- } //*end definition
- : radio_button { //*define radio button
- key = "S2" ; //*give it a name
- label = "1350mm" ; //*give it a label
- } //*end definition
- }
- :Row{
- : radio_button { //*define radio button
- key = "S3" ; //*give it a name
- label = "1200mm" ; //*give it a label
- } //*end definition
- : radio_button { //*define radio button
- key = "S4" ; //*give it a name
- label = "1050mm" ; //*give it a label
- } //*end definition
- }
- }
- ok_cancel ; //predifined OK/Cancel
- : row { //define row
- : paragraph { //define paragraph
- : text_part { //define text
- label = "Designed by Brian Deasy"; //give it some text
- } //end text
- : text_part { //define more text
- label = "for CCC NNRDO"; //some more text
- } //end text
- } //end paragraph
- } //end row
-
- } //end dialog
你的例子很好。我想做的一件不同的事是,我希望每行只有一个框,但要保持按钮布局,这样第一个框中有4个,第二个框中有14个。
谢谢 |