is it possible to have more than one display with RappaGUI in a window?
I am getting an error that "Error in line 31 (DispTest.hws): Could not find display 2!"
I tried to boil it down as much as I could.
First the xml which should be stored in a file "NewGUI2.xml"
Code: Select all
<?xml version="1.0" encoding="iso-8859-1"?>
<application id="app">
<menubar id="mymenubar">
<menu title="Datei">
<item id="menabout">About...</item>
<item id="menaboutrapagui"> About RapaGUI...</item>
<item/>
<item id="menquit">Quit</item>
</menu>
</menubar>
<window title="Test" menubar="mymenubar">
<vgroup>
<hgroup>
<hollywood display="1" height="55" width="420"/>
</hgroup>
<hollywood display="2" height="155" width="220"/>
</vgroup>
</window>
</application>
Code: Select all
@REQUIRE "RapaGUI"
@FONT 1,"Arial",32
UseFont(1)
SetFontColor(#RED)
Function EventFunktion(msg)
Switch msg.action
Case "RapaGUI"
Switch msg.attribute
Case "Selected":
Switch msg.id
Case "menaboutrapagui":
moai.DoMethod("app", "aboutrapagui")
Case "menquit":
End
EndSwitch
EndSwitch
EndSwitch
EndFunction
InstallEventHandler({RapaGUI = EventFunktion})
moai.CreateApp(FileToString("NewGUI2.xml"))
Print("Hello")
SelectDisplay(2)
Print("Hello2")
Repeat
CheckEvent()
Forever
Lars