<screen backgroundColor="#80ffffff" name="MessageBoxExt" position="center,center" size="1264,467" title="Message" flags="wfNoBorder">
    <widget name="title" position="2,2" size="1260,60" font="mediaportal_clean;40" backgroundColor="#20000000" foregroundColor="#00ffffff" zPosition="1" halign="center" valign="center" transparent="1" />
    <widget name="bgup" position="2,2" size="1260,60" backgroundColor="#20000000" />
    <widget name="bgdown" position="2,64" size="1260,400" backgroundColor="#20000000" />
    <widget name="text" position="110,85" size="1180,0" font="mediaportal;30" zPosition="1" backgroundColor="#20000000" transparent="1" />
    <widget name="ErrorPixmap" pixmap="skin_default/icons/input_error.png" position="30,80" size="53,53" alphatest="on" zPosition="1" transparent="1" />
    <widget name="QuestionPixmap" pixmap="skin_default/icons/input_question.png" position="30,80" size="53,53" alphatest="on" zPosition="1" transparent="1" />
    <widget name="InfoPixmap" pixmap="skin_default/icons/input_info.png" position="30,80" size="53,53" alphatest="on" zPosition="1" transparent="1" />
    <widget name="list" position="2,65" size="1260,400" backgroundColor="#20000000" itemHeight="42" 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)
offset = 40
if self.type == self.TYPE_YESNO:
	offset = 145
wsizex = textsize[0] + 120
wsizey = textsize[1] + offset
if (600 &gt; wsizex):
	wsizex = 600
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, 90)
self["list"].instance.move(ePoint(10, textsize[1]+40))
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>