import win.ui;
/*DSG{{*/
var winform = win.form(parent=...; text="AAuto Form";right=349;bottom=249 )
winform.add(
combobox2={ bottom=105;text="";left=162;
items={ };font=LOGFONT( name="宋体";h=-12 );right=252;z=2;top=85;mode="dropdown";edge=1;cls="combobox" };
combobox={ bottom=105;text="";left=27;
items={ "山东省";"广东省";"河北省" };font=LOGFONT( name="宋体";h=-12 );right=117;z=1;top=85;mode="dropdown";edge=1;cls="combobox" }
)
/*}}*/
//第一个下拉框变动时添加所属市
winform.combobox.oncommand = function(id,event){
//win.msgbox( windex=winform.combobox.selIndex
winform.combobox2.clear()//清除第二个下拉框的值
index=winform.combobox.selIndex//当第一个下拉框选中项时
select(index) {
case 1 {winform.combobox2.add("青岛")
winform.combobox2.add("烟台")
winform.combobox2.add("济南")
}
case 2 {winform.combobox2.add("广州")
winform.combobox2.add("深圳")
winform.combobox2.add("东莞")
}
case 3 {winform.combobox2.add("啊")
winform.combobox2.add("飞")
winform.combobox2.add("的")
}
}
}//endproc
winform.show()
win.loopMessage();
阅读(1705) | 评论(0) | 转发(0) |