    
      var res = dialog { body:$(form#data-dialog),
                         returns: #values,
                         buttons: [ { caption: "确定", role:#ok, value:true },
                                    { caption: "应用", value: onApply },
                                    { caption: "取消", role:#cancel, value:false } ]
                        };
     
      $(#result4).value = String.printf("result = %v", res);
    }
    
    $(#button-min).onClick = function()
    {
      view.state = 