problem: when saving changes to a control panel, Zorro clears all special panel characters that designate whether a cell is f.i a button or editable.
the panel file:
Code:
Hours,@
short hours,#2
medium hours,#8
long hours,#16
,@
Periods,@
short period,#3
medium period,#9
long period,#27
longest period,#2
,@
bar period (hours),#4
,!Save
Then Zorro code:
Code:
static string panelfile = "History\\testpanel.csv";
void click(int row, int col) {
panelSave(panelfile);
}
function run() {
if (is(INITRUN)) {
panel(panelfile,GREY,100);
}
}
the effect of clicking the panel cell button (with the "save" text) results in the following file contents:
Code:
Hours,
short hours,2
medium hours,8
long hours,16
,
Periods,
short period,3
medium period,9
long period,27
longest period,2
,
bar period (hours),4
,Save
which disables the save button and makes each formerly editable cells read only, allowing a one time only changing of stored values.
Does anyone know of a way to keep the original panel formatting when using the panelSave function?