make messagebox look better and translate it
[vuplus_dvbapp] / data / skin.xml
index d19e0fa..66bcd20 100644 (file)
                        <eLabel position="500,40" size="220,60" text="help..." font="Arial;50" />
                </screen>
                <screen name="MessageBox" position="0,300" size="720,10" title="Message">
-                       <widget name="text" position="0,0" size="650,0" font="Arial;22" />
+                       <widget name="text" position="0,35" size="650,0" font="Arial;22" />
+                       <widget name="key_red" position="0,0" size="140,30" backgroundColor="red" font="Arial;21" />
+                       <widget name="key_green" position="140,0" size="140,30" backgroundColor="green" font="Arial;21" />
                        <applet type="onLayoutFinish">
 # this should be factored out into some helper code, but currently demonstrates applets.
 from enigma import eSize, ePoint
@@ -236,7 +238,12 @@ textsize = self["text"].getSize()
 
 # y size still must be fixed in font stuff...
 textsize = (textsize[0], textsize[1] + 50)
-wsize = (textsize[0] + 50, textsize[1] + 50)
+wsizex = textsize[0] + 50
+wsizey = textsize[1] + 50
+if (280 > wsizex):
+       wsizex = 280
+wsize = (wsizex, wsizey)
+
 
 # resize 
 self.instance.resize(eSize(*wsize))