Here are two minimal examples:
1. Resizes correctly
Code: Select all
@REQUIRE "RapaGUI"
@DISPLAY 1,{Width = 320, Height = 200 }
@BGPIC 1,"logo.png"
@DISPLAY 2,{width = 320, Height = 16, color=$404040}
gui$=[[<?xml version="1.0" encoding="UTF-8"?>
<application id="test" icon="Slarti.info">
<window id="mainwindow" title="test" activate="true">
<vgroup>
<hgroup>
<hollywood id="timeline" hide="false" display="2" fixwidth="false" fixheight="true"/>
<button id="btn_msperpxplus" weight="5">-</button>
<button id="btn_msperpxminus" weight="5">+</button>
</hgroup>
</vgroup>
</window>
</application>
]]
moai.CreateApp(gui$)
Repeat
WaitEvent
Forever
2. If you resize it, the Hollywood display trashed with gui gfx. The only difference is the BeginDoubleBuffer() after moai.CreateApp().
@REQUIRE "RapaGUI"
@DISPLAY 1,{Width = 320, Height = 200 }
@BGPIC 1,"logo.png"
@DISPLAY 2,{width = 320, Height = 16, color=$404040}
gui$=[[<?xml version="1.0" encoding="UTF-8"?>
<application id="test" icon="Slarti.info">
<window id="mainwindow" title="test" activate="true">
<vgroup>
<hgroup>
<hollywood id="timeline" hide="false" display="2" fixwidth="false" fixheight="true"/>
<button id="btn_msperpxplus" weight="5">-</button>
<button id="btn_msperpxminus" weight="5">+</button>
</hgroup>
</vgroup>
</window>
</application>
]]
moai.CreateApp(gui$)
SelectDisplay(2)
BeginDoubleBuffer()
SelectDisplay(1)
Repeat
WaitEvent
Forever