1 Star 0 Fork 7

夏汉林/nwcommands

forked from 连享会/nwcommands 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
nwsym.dlg 1.38 KB
一键复制 编辑 原始数据 按行查看 历史
ThomasGrund 提交于 2015-09-18 19:13 . v1.5.1
VERSION 10
INCLUDE _std_small
SYNCHRONOUS_ONLY
HELP hlp1, view("help nwsym")
OK ok1, label("OK")
CANCEL can1, label("Cancel")
SUBMIT sub1, label("Submit")
RESET res1
POSITION 10 10 360 180
SCRIPT PREINIT
BEGIN
program initialize
END
DIALOG main, title("nwsym - Symmetrize network")
BEGIN
TEXT tx_var 20 20 100 ., label("Network:")
COMBOBOX cb_var 80 20 210 ., dropdown contents(netlist) nomem append
TEXT tx_add 20 50 70 ., label("Mode:")
COMBOBOX cb_mode 80 50 100 ., content(mode) nomem dropdownlist default("max")
CHECKBOX cx_new 80 80 200 ., label("Generate new network") onclickon(script generateOn) onclickoff(script generateOff)
TEXT tx_new 80 110 150 ., label("New network name:")
EDIT ed_new 80 130 150 ., default("") nomem
END
SCRIPT generateOn
BEGIN
main.tx_new.show
main.ed_new.show
END
SCRIPT generateOff
BEGIN
main.tx_new.hide
main.ed_new.hide
END
LIST mode
BEGIN
max
min
END
LIST netlist
BEGIN
// intentionally empty
// this list will be populated by _nwdialog.ado
END
PROGRAM initialize
BEGIN
put "_nwdialog nwsym"
stata hidden immediate
END
PROGRAM command
BEGIN
put "nwsym " main.cb_var
put ", mode(" main.cb_mode ")"
if main.cx_new {
if main.ed_new.isneq("") {
put " noreplace name(" main.ed_new ")"
}
if main.ed_new.iseq("") {
put " noreplace"
}
}
stata
END
*! v1.5.0 __ 17 Sep 2015 __ 13:09:53
*! v1.5.1 __ 17 Sep 2015 __ 14:54:23
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/xiahanlin/nwcommands.git
git@gitee.com:xiahanlin/nwcommands.git
xiahanlin
nwcommands
nwcommands
master

搜索帮助

0d507c66 1850385 C8b1a773 1850385