Changing the resolution
From LaneWiki
If you are using the register in a kiosk mode, using a kiosk window manager is a simpler solution than the following. See Other_Resources#Other_resources.2Fideas.
[edit]
640x480 Howto
Edit /LanePOS/register/xmlRegister/renderXmlRegister-Tk
cp LanePOS/register/xmlRegister/renderXmlRegister-Tk/renderXmlRegister-Tk \ LanePOS/register/xmlRegister/renderXmlRegister-Tk/renderXmlRegister-Tk-640x480
sub initDisplay
{
#my($top) = MainWindow->new();
$top = MainWindow->new();
hideCursor($top);
$top->title("L'anePOS: registerTk");
# force 640x480 resolution
$top->geometry('640x480');
outerFramesUi($top);
$entEntry->focus();
# &Tk::MainLoop;
$entEntry->update;
return 1;
}
- Render the new register:
./renderXmlRegister-Tk-640x480 sample-touch-register.xml > my-register ./my-register
This will result in the app being forced to 640x480, but not all of the buttons can be seen:
http://www.heinous.org/lanepos-640x480crop.jpg
Now all of the font sizes have to be mangled so the application fits in the space we gave it.
cp LanePOS/register/xmlRegister/sample-touch-register.xml \ LanePOS/register/xmlRegister/sample-touch-register-640x480.xml
LanePOS/register/xmlRegister/sample-touch-register-640x480.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<!DOCTYPE registerinterface SYSTEM "http://ryotous.com/l-ane-xml/lane-xmlRegister-0.dtd">
<registerinterface>
<default>
<author contact="http://ryotous.com/">Jason Burrell</author>
<creationtimestamp>2003-05-27</creationtimestamp>
<font size="12" weight="bold">helvetica</font> <!-- this is the default font -->
</default>
<!-- This is roughly the registerTouch interface. -->
<table width="3" height="5">
<cell rowspan="3"><receiptbox><font size="9" weight="bold">courier</font></receiptbox></cell>
<cell columnspan="2"><infobox><font size="14"/></infobox></cell>
<cell columnspan="2"><entry><font size="14">helvetica</font></entry></cell>
<!-- this image is just a filler since images aren't (yet) supported -->
<cell><image name="filler"/></cell>
<cell rowspan="2"><tabpanel columns="6"><font size="10" weight="normal"/></tabpanel></cell>
<cell columnspan="2"><keypad><font size="10"/></keypad></cell>
<cell columnspan="3"><statusbar><font size="12" slant="italic">helvetica</font></statusbar></cell>
</table>
</registerinterface>
- Render the new register:
./renderXmlRegister-Tk-640x480 sample-touch-register-640x480.xml > my-register ./my-register
- And now we should have something like this:

