Happy Hobbit 发表于 2022-7-5 18:06:40

DCL单选按钮由D检查

我找到了Kenny Ramage的DCL,我打算将其用于删除实体lisp。我打算将“螺栓孔和现场”替换为“点”,“螺栓孔Sho&p”替换为“非常短的线”等
 
samp4 : dialog {                                //dialog name
   label = "Structural Holes" ;                //give it a label

      :boxed_radio_column {                        //define radio column
      label = "Type" ;                                //give it a label

       : radio_button {                        //define radion button
              key = "rb1" ;                                //give it a name
              label = "Bolt Holes &Site" ;                //give it a label
              value = "1" ;                                //switch it on
       }                                        //end definition

            : radio_button {                        //define radio button
              key = "rb2" ;                                //give it a name
              label = "Bolt Holes Sho&p" ;                //give it a label
            }                                        //end definition

            : radio_button {                        //define radio button
              key = "rb3" ;                                //give it a name
              label = "Bolt Holes &Hidden" ;        //give it a label
              }                                        //end definition

            : radio_button {                        //define radio button
              key = "rb4" ;                                //give it a name
              label = "Bolt Holes &Ctsnk" ;                //give it a label
            }                                        //end definition

            : radio_button {                        //define radio button
              key = "rb5" ;                                //give it a name
              label = "Bolt Holes &Elevation" ;        //give it a label
              }                                        //end definition

            : radio_button {                        //define radion button
              key = "rb6" ;                                //give it a name
              label = "Bolt Holes &Slotted" ;        //give it a label
            }                                        //end definition

       }                                        //end radio column

    ok_cancel ;                                //predifined OK/Cancel

    : row {                                        //define row

    : image {                                        //define image tile
    key = "im" ;                                //give it a name
    height = 1.0 ;                                //and a height
    width = 1.0 ;                                //and now a width
    }                                                //end image

         : paragraph {                                //define paragraph

    : text_part {                                //define text
    label = "Designed and Created";                //give it some text
    }                                                //end text

    : text_part {                                //define more text
    label = "by Kenny Ramage";                        //some more text
    }                                                //end text

    }                                                //end paragraph

    }                                                //end row
                               
    }                                                //end dialog

 
 
我想要的是默认选中所有的无线电按钮,然后我可以在单击“确定”之前取消选择任何我想要的按钮。
 
我需要更改/添加什么才能选中所有单选按钮?

Lee Mac 发表于 2022-7-5 18:31:21

使用切换瓷砖代替单选按钮瓷砖;单选按钮用于选择单个项目。
 
要在没有用户输入的情况下启用切换,请使用:
或将DCL值属性设置为“1”。

Happy Hobbit 发表于 2022-7-5 18:55:29

很好,李,谢谢你

Lee Mac 发表于 2022-7-5 19:16:10

不客气。
页: [1]
查看完整版本: DCL单选按钮由D检查