View Single Post
Old 11-21-2010, 02:10 PM   #44
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Quote:
Originally Posted by kartu View Post
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?
Parenthesisopen and Parenthesisclose, 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]

Last edited by Mark Nord; 11-21-2010 at 03:25 PM.
Mark Nord is offline   Reply With Quote