标签:water bad ESS 组合框 ges text vpd col 完整
下拉组合框控件演示:关键代码:
combobox={cls="combobox";left=19;top=58;right=446;bottom=84;edge=1;items={};mode="dropdown";z=5};
//下拉组合框列表的选项集合
winform.combobox.items ={
`选项1`;
`选项2`;
`选项3`;
`选项4`;
`选项5`
}
完整代码:
import win.ui;
/*DSG{{*/
var winform = win.form(text="下拉组合框控件演示";right=561;bottom=469)
winform.add(
button={cls="button";text="确定";left=460;top=57;right=545;bottom=79;z=2};
combobox={cls="combobox";left=19;top=58;right=446;bottom=84;edge=1;items={};mode="dropdown";z=5};
richedit={cls="richedit";left=19;top=130;right=546;bottom=458;edge=1;multiline=1;z=3};
static={cls="static";text="下拉组合框控件演示";left=175;top=12;right=351;bottom=34;font=LOGFONT(h=-19);transparent=1;z=1};
static2={cls="static";text="结果:";left=20;top=106;right=68;bottom=124;transparent=1;z=4}
)
/*}}*/
//下拉组合框列表的选项集合
winform.combobox.items ={
`选项1`;
`选项2`;
`选项3`;
`选项4`;
`选项5`
}
winform.show()
win.loopMessage();
标签:water bad ESS 组合框 ges text vpd col 完整
原文地址:http://blog.51cto.com/10466450/2316149