local len = math.max(string.len(minvalstr),string.len(maxvalstr))
write_command(conn,"widget_set "..pageid.." "..pageid..".max "..trim(tostring(width-string.len(maxvalstr)+1)).." 2 "..maxvalstr)
for k = 3,height-1 do
local len = math.max(string.len(minvalstr),string.len(maxvalstr))
write_command(conn,"widget_set "..pageid.." "..pageid..".max "..trim(tostring(width-string.len(maxvalstr)+1)).." 2 "..maxvalstr)
for k = 3,height-1 do