dotnet 实现 RedioButton 单选问题 该名称问题

global TDTblRollout
rollout TDTblRollout "Untitled" 
(
    
    dotnetcontrol  one  "System.Windows.Forms.RadioButton"  width:60  height:20 pos:[10,10]--
    dotnetcontrol  two  "System.Windows.Forms.RadioButton"  width:60  height:20 pos:[10,40]--
    dotnetcontrol  cc  "System.Windows.Forms.GroupBox"  width:200  height:100 pos:[0,0]
    
    button op "!!!!!!!!!"
    on TDTblRollout open do 
    (
        cc.text ="dddd"
        Falt= dotnetclass "System.Windows.Forms.FlatStyle"
        cc.FlatStyle =  Falt.Flat;
        
        ---*** 使用这个控件是可以 但是 感觉在max 中 group 支持的超级不好
        ---**** 所有的东西都重载了一起 
        
        --cc.Controls.Add(one)
        --cc.Controls.Add(two )
        ce =dotnetclass "System.Windows.Forms.AnchorStyles"
        cc.Anchor = ce.Bottom ;
        one.text = dotnetobject "system.string" "空间1"
        two.text = dotnetobject "system.string" "空间2"
        
        --- 这里要加载一个事件 
        
    )
    on one  Click do 
    (
       two.Checked=false ;
    )
    on two Click do 
    (
     one.Checked=false 
    )
    on op pressed do 
    (
        one.text ="1"
        two.text = "2"
    )
    

)
     createdialog TDTblRollout  300 500
     
    
     

 

posted on 2013-02-21 17:45  盖天00  阅读(245)  评论(0编辑  收藏  举报

导航