Question
Advanced Controls - List Box - selection not preserved
I noticed an issue with MCP11 vs 10 regarding Advanced Controls List Boxes where the selection is not preserved when a file is saved/closed/reopened. Anyone else seeing this issue?
Without selection preservation, List Boxes are basically useless. I haven't yet checked if the other types (checkboxes, radio buttons, etc.) maintain selection.
list box code (this worked in MCP10 w/o issue):
// TODO: Add your initialization code here
ListBox.ResetContent();
var list1 = Inputs[0].Value;
var list2 = Inputs[1].Value;
// Add Strings here as needed
for (var i = 0; i < list2.length; i++) {
ListBox.AddString(list2[i]);
}
function ListBoxEvent_Start(Inputs, Outputs) {
// TODO: Add your code here
};
function ListBoxEvent_Exec(Inputs, Outputs) {
Outputs[0].Value = list1[ListBox.CurSel()];
};
function ListBoxEvent_Stop(Inputs, Outputs) {
// TODO: Add your code here
};
function ListBox_SelChanged(Inputs, Outputs) {
// TODO: Add your code here
};
function ListBox_DblClick(Inputs, Outputs) {
// TODO: Add your code here
};


