function init() { SetStatusBarCount(6); } SetStatusBarWidth(1, 200); SetStatusBarText(1, [x,1]); SetStatusBarWidth(2, 80); SetStatusBarText(2, GetActiveDataType()); SetStatusBarPopUp(2, GetDataTypes(), type => SetActiveDataType(type)); SetStatusBarWidth(3, 80); SetStatusBarText(3, GetCharCode()); SetStatusBarPopUp(3, "UTF-8\nShift-JIS", code => SetCharCode(code)); SetStatusBarText(4, "[" + x + "," + y + "]"); if (SelRight > SelLeft || SelBottom > SelTop) { SetStatusBarText(5, (SelRight - SelLeft + 1) + "×" + (SelBottom - SelTop + 1)); if ((SelRight - SelLeft + 1) * (SelBottom - SelTop + 1) <= 1000) { SetStatusBarText(6, "SUM=" + sum(SelLeft, SelTop, SelRight, SelBottom)); } } else { SetStatusBarText(5, ""); SetStatusBarText(6, [x,y]); }