winform.edit.addCtrl(
spin={
cls="spin";marginRight=4;marginTop=1;marginBottom=4;width=16;
oncommand = function(id,event,pos){
if( pos && event == 0x4/*_SB_THUMBPOSITION*/ ){
winform.edit.text = tostring(pos);
}
}
}
)
winform.edit.spin.setRange(1,1000); //设置数值的上下限
winform.edit.spin.pos = 1;//设置数值
winform.edit.spin.inc = 1;//设置每次点击箭头的增减量(步长)