View Single Post
Old 04-03-2012, 04:49 PM   #3602
Analogus
Fanatic
Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.Analogus ought to be getting tired of karma fortunes by now.
 
Analogus's Avatar
 
Posts: 568
Karma: 2170348
Join Date: Apr 2011
Device: 2x Sony PRS-350; PRS-300 (†), Paperwhite (†), Voyage
Hi Mark

Thank you for flowers. Pushig will come - after the code has been cleaned from my stupid comments inside ;-)

Concerning buttons:
I allready have made this variable(s). Problem is:

Buttons become black when pushed. So far so good.
But I would prefer when one of the 4 buttons is pressed it should be stay black until another button is pressed. Same as SONY's font-size-buttons. So you could remember which font-size/line-height has been chosen.

Intermediate state of the interface to give an expression. There are now 2 groups with 4 buttons:
Click image for larger version

Name:	2020-4-30_0.jpg
Views:	298
Size:	56.1 KB
ID:	84828

Another wish:
I try to deactivate this buttons when an non-Epub-file is open. Therefor I would need to make a function in the XML-file which ask wether it's a Epub or not.

There are functions like this:
Code:
<function id="canStyleMode"><![CDATA[return this.getVariable("VAR_ENABLE_STYLE");
So I would need a function which gives 0 or 1 wether it's an epub or not. Some ideas?

A.

Edit: Code online

Last edited by Analogus; 04-09-2012 at 04:33 PM.
Analogus is offline   Reply With Quote