在数字栏编辑框中启用日历图标?我正在创建一个带有数字列编辑框的表框,该框将显示日期。但是,即使我正确设置了格式,日历图标也不会显示。这是一个例子:
nw = new window("Test Calendar",
neb = number edit box(),
tb = table box(
string col box("String", {"One", "Two"}),
date_nceb = number col edit box("Dates", {., .})
)
);
neb << Set Format( Format( "ddMonyyyy", 12 ) );
date_nceb << Set Format( Format( "ddMonyyyy", 12 ) );

如您所见,对于数字编辑框,日历图标正确显示。不过,“日期”列没有任何内容。
脚本编写回复:在“数字栏”编辑框中启用日历图标?难道是Number Col Edit Box不支持日历格式(还)?
可能的解决方法是使用Col Box(处理这些值可能会比较烦人)。
Names Default To Here(1);
nw = new window("Test Calendar",
neb = number edit box(),
tb = table box(
string col box("String", {"One", "Two"}),
Col Box("Dates",
neb1 = Number edit box(.),
neb2 = Number edit box(.),
)
)
);
neb << Set Format( Format( "ddMonyyyy", 12 ) );
neb1 << Set Format( Format( "ddMonyyyy", 12 ) );
neb2 << Set Format( Format( "ddMonyyyy", 12 ) );回复:在“数字栏”编辑框中启用日历图标吗?我最终像您建议的那样使用了彩色框。开销更大,但是行得通。
回复:在“数字栏”编辑框中启用日历图标吗?与上述有关的新问题。我正在创建一个包含组合框的col框,需要遍历它们以获取每个组合框的选定值。但是,似乎没有一种方法可以做到这一点。
nw = new window("Test Colboxes",
tb = table box(
string col box("String", {"One", "Two"}),
date_nceb = number col edit box("Dates", {1, 2}),
cb = col box("Combo boxes"),
),
button box("OK",
cb_list = cb << get;
print(cb_list, nitems(cb_list));
)
);
cb << append(combo box({"ABC", "DEF"}));
cb << append(combo box({"GHI", "FUBAR"}));

单击“确定”在日志中显示:
{"", ""}
2
我想获取组合框列表。