View Single Post
Old 09-07-2011, 01:49 PM   #532
surquizu
Evangelist
surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.surquizu ought to be getting tired of karma fortunes by now.
 
surquizu's Avatar
 
Posts: 411
Karma: 902071
Join Date: Jun 2008
Location: Zaragoza (Spain)
Device: prs-505, kobo auraHD, kobo auraH2O, kobo Glo HD, kobo aura ONE
Quote:
Originally Posted by BenChen View Post
Hi surqizu,

That's really difficult to explain here! A much easier option would be to use one of the 505's physical buttons that performs the cancel when the event popup is visible. For example, if we use the "Mark" button, change the procedure

Code:
	target.doMark = function () {
		monthNum=todaysMonth;
		yearNum=todaysYear;
		this.dateChanged();			
		return;
	}
to

Code:
	target.doMark = function () {
		if (eventsDlgOpen) {
			target.EVENTS_DIALOG.btn_Cancel.click();
		} else {
			monthNum=todaysMonth;
			yearNum=todaysYear;
			this.dateChanged();
		}
		return;
	}
Then you just need to add a label on the event popup that says "[Mark] Cancel".

Now, all this programming was not tested, so it might not work as I expect! Let me know how you get on...

Sincerely,
Ben.
Quote:
Originally Posted by BenChen View Post
Hi surquizu,

Actually, you would also need to add another function line (somewhere around line 469 of calendar.xml) that says

Code:
<function id="doMark">		this.container.doMark(); </function>
Hope that makes it work!

Sincerely,
Ben.

Thanks, but..

I do not understand , it works perfect in eBookSim but not work on reader
surquizu is offline   Reply With Quote