Hi, I have a question regarding Script Dialogs.
I'm trying to display multiple columns in a listview control using "details" view mode. I've defined two columns in the XML resource and added an item using AddItem("row1_content", "row2_content"), but only one column seems to appear.
Could you advise how to properly show multiple columns in the listview?
Thank you!
// @script JScript
function OnClick(clickData) {
DOpus.ClearOutput();
var dlg = DOpus.Dlg;
dlg.template = "dialog1";
dlg.detach = true;
dlg.Create();
dlg.Show();
var listView = dlg.Control("listview1");
listView.AddItem("row1_content","row2_content");
while (true) {
var msg = dlg.GetMsg();
if (!msg.result) break;
}
DOpus.output("Done");
}
Whoops! I used Windows Sandbox to avoid the Japanese UI, but the Japanese font remained as-is
I understood that the \ escape sequence doesn't need to be considered outside script code.
I tried registering an alias in another dialog with an Edit control, and it worked fine.
I'm not familiar with jScript, so I might be writing something odd.
Thanks so much for the advice!