  <!-- ChoiceBoxExt -->
  <screen backgroundColor="transparent" name="ChoiceBoxExt" position="0,0" size="1264,467" title="Input" flags="wfNoBorder">
  <widget source="Title" render="Label" position="10,25" size="800,50" font="mediaportal; 36" halign="left" valign="center" foregroundColor="bluetitle" backgroundColor="black" transparent="1" zPosition="1" />
<ePixmap pixmap="AX-Blue-FULL-HD/menu/menu_duo_blue.png" position="0,0" zPosition="-1" size="1920,1080" />
<widget source="global.CurrentTime" render="Label" position="508,30" size="600,40" font="mediaportal; 32" halign="right" foregroundColor="foregroundClock" backgroundColor="black" transparent="1">
<convert type="ClockToText">Format:%a, %d.%m.%Y   %H:%M</convert>
</widget>
<ePixmap position="971,676" size="256,256" zPosition="2" pixmap="AX-Blue-FULL-HD/icons/Media_Center.png" transparent="1" />
  <widget name="bgup" position="30,130" size="880,90" backgroundColor="background" font="mediaportal; 30" />
  <widget name="bgdown" position="30,250" size="880,690" backgroundColor="background" />
  <widget name="text" position="15,85" size="1180,0" font="mediaportal;30" zPosition="1" backgroundColor="background" transparent="1" />
  <widget name="list" position="30,250" size="880,400" itemHeight="38" backgroundColor="background" scrollbarMode="showOnDemand" transparent="1" zPosition="1" />
  <applet type="onLayoutFinish">
	
# this should be factored out into some helper code, but currently demonstrates applets.
from enigma import eSize, ePoint

orgwidth = self.instance.size().width()
orgpos = self.instance.position()
textsize = self["text"].getSize()

# y size still must be fixed in font stuff...
textsize = (textsize[0] + 80, textsize[1] + 80)
count = len(self.list)
if count &gt; 10:
        count = 10
offset = 38 * count
wsizex = textsize[0] + 70
wsizey = textsize[1] + offset + 60

if (650 &gt; wsizex):
        wsizex = 650
wsize = (wsizex, wsizey)

# resize
self.instance.resize(eSize(*wsize))

# resize label
self["text"].instance.resize(eSize(*textsize))
self["title"].instance.resize(eSize(*(wsize[0]-4, 60)))
self["bgup"].instance.resize(eSize(*(wsize[0]-4, 60)))
self["bgdown"].instance.resize(eSize(*(wsize[0]-4, wsize[1]-66)))

# move list
listsize = (wsizex - 20, 38 * count)
self["list"].instance.move(ePoint(10, textsize[1]+30))
self["list"].instance.resize(eSize(*listsize))

# center window
newwidth = wsize[0]
self.instance.move(ePoint(orgpos.x() + (orgwidth - newwidth)/2, (1080-wsizey)/2))
	</applet>
</screen>
