Enable Calendar Icon in Number Col Edit Box?I'm creating a tablebox with a number col edit box that will show the date. However even if I set the format properly the calendar icon doesn't show up. Here's an example:
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 ) );

As you can see for the number edit box the calendar icon shows up properly. Nothing for the Dates column though.
ScriptingRe: Enable Calendar Icon in Number Col Edit Box?Could it be that Number Col Edit Box doesn't support calendar formatting (yet)?
Maybe as possible workaround you could use Col Box (dealing with the values might be a bit more annoying).
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 ) );Re: Enable Calendar Icon in Number Col Edit Box?I ended up using col boxes like you suggested. More overhead but it works.
Re: Enable Calendar Icon in Number Col Edit Box?New question related to the above. I'm creating a col box containing combo boxes, and need to loop over them getting the selected value for each combo box. However there doesn't seem to be a method to doing this.
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"}));

Clicking OK shows this in the log:
{"", ""}
2
I want to get the list of combo boxes.