I can't work out what the problem is with this code snippet. I have a region 11 inside my region 6, which enables me to toggle between SD and iPAQ file store memory. Unfortunately, whenever the 10s region 6 refresh occurs, my region 11 disappears.
region,6,0,10
defregion,6,0,0,240,38,1
offset,offset_-1,offset_-1
offsetadd,0,0
changefont,tahoma,9,
image,35,0,Battery Part Full.png,t
draw,roundrect,48,10,27,9,100_100_100,h
battery,bar,50,12,23,5,gradient_red-green gradient.png
battery,remaining,71,10,,%,r
image,87,0,Program Memory.png,t
draw,roundrect,102,10,27,9,100_100_100,h
memory,barused,104,12,23,5,gradient_green-red gradient.png
region,11,0,-1
defregion,11,0,0,43,19,2
image,139,0,SD Card.png,t
draw,roundrect,154,10,27,9,100_100_100,h
storage,sdcard,bar,156,12,23,5,gradient_green-red gradient.png
storage,sdcard,usedpercent,179,10,,%,r
button,139,0,43,19,11,4,1,6
endregion,11,0
region,11,1,-1
image,139,0,iPAQ File Store.png,t
draw,roundrect,154,10,27,9,100_100_100,h
storage,ipaq,bar,156,12,23,5,gradient_green-red gradient.png
storage,ipaq,usedpercent,179,10,,%,r
button,139,0,43,19,11,4,0,6
endregion,11,1
offsetadd,0,37
endregion,6,0
All suggestions welcome. Correct answers more welcome.
Incidentally, I've found that I can achieve the effect I desire by giving region 11 a 10sec refresh also, but this feels like a kludge, rather than a fix.
yep, you got it. thats the only way to correctly make it work with the current version. both regions should stay in sync as long as you're careful about updating both regions together, but if you update one without the other they will go off sync and it won't work properly again.
definatly a kludge, but the next version will improve this behavior.