Quote:
Originally Posted by kartu
There seems to be 81/37 pixel difference between test environment and the reader.
|
OK, this is the offset of EINK (the output-panel) in Sim to the application window.
<panel id="EINK" skin="panel" left="81" top="37" width="600" height="800"> //E-Ink Display 600x800
Quote:
What is the purpose of popen/pclose functions?
|
Parenthesis
open and
Parenthesis
close, just inherit form
http://www.motionnet.com/calculator/
[Edit]
Good eye! This should be
openp() and
closep()!
We could define
var
simDX=0;
var
simDY=0;
Append init() like this
Code:
if(_Core == undefined){
simDX = 81;
SimDY = 37;
and modify
Code:
target.doButtonClick = function (sender) {
this.showTime();
var x = _Core.system.getSoValue(sender,"x");
x = (x - 121 + simDX) / 60 ;
var y = _Core.system.getSoValue(sender,"y");
y = (y - 287 + simDY) / 50;
[/Edit]