I was trying to make a fullscreen image veiwer with RapaGUI, but I have run into problems.
I can set every thing up on a normal screen but as soon as I put Borderless in the window tag it does not display properly.
Code: Select all
/*** This script requires the RapaGUI plugin*/
@REQUIRE "RapaGUI", {Link = True}
/*** Setup ESC to exit program ***************************************************************************/
EscapeQuit(True)
/*** Setup Screens *****************************************************************************************/
Createbrush(1, 1800, 1080, #BLACK)
CreateDisplay(2, {Width = 1880, Height = 1000, Color = #BLACK, Active = True})
/*** Setup GUI ********************************************************************************************/
moai.CreateApp([[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="imbase">
<window id="mainwin" title=" ImageBase Version 1.0.0 " width="1920" height="1080" borderless="true"
notify="closerequest" >
<vgroup>
<vgroup>
<image id="img" brush="1"/>
<vgroup>
<button id="2">2</button>
<button id="3">3</button>
<button id="4">4</button>
<button id="5">5</button>
</vgroup>
</vgroup>
</vgroup>
</window>
</application>]])
/*** RAPAGUI Events ****************************************************************************************/
Function Rapa_Events(msg)
Switch msg.action
Case "RapaGUI"
Switch msg.attribute
Case "Pressed"
Switch msg.id
Case "2"
End
Case "clearimage"
EndSwitch
Case "CloseRequest"
Switch msg.id
Case "mainwin"
moai.Set("mainwin", "Open", False)
End
EndSwitch
EndSwitch
EndSwitch
EndFunction
/*** Listen to these events ********************************************************************************/
InstallEventHandler({RapaGUI = Rapa_Events})
/*** Program Setup *****************************************************************************************/
/*** Main Loop *********************************************************************************************/
Repeat
WaitEvent
ForeverCode: Select all
/*** This script requires the RapaGUI plugin*/
@REQUIRE "RapaGUI", {Link = True}
/*** Setup ESC to exit program ***************************************************************************/
EscapeQuit(True)
/*** Setup Screens *****************************************************************************************/
Createbrush(1, 1800, 1080, #BLACK)
CreateDisplay(2, {Width = 1880, Height = 1000, Color = #BLACK, Active = True})
/*** Setup GUI ********************************************************************************************/
moai.CreateApp([[<?xml version="1.0" encoding="iso-8859-1"?>
<application id="imbase">
<window id="mainwin" title=" ImageBase Version 1.0.0 " width="1920" height="1080" borderless="true"
notify="closerequest" >
<vgroup>
<hgroup>
<image id="img" brush="1"/>
<vgroup>
<button id="2">2</button>
<button id="3">3</button>
<button id="4">4</button>
<button id="5">5</button>
</vgroup>
</hgroup>
</vgroup>
</window>
</application>]])
/*** RAPAGUI Events ****************************************************************************************/
Function Rapa_Events(msg)
Switch msg.action
Case "RapaGUI"
Switch msg.attribute
Case "Pressed"
Switch msg.id
Case "2"
End
Case "clearimage"
EndSwitch
Case "CloseRequest"
Switch msg.id
Case "mainwin"
moai.Set("mainwin", "Open", False)
End
EndSwitch
EndSwitch
EndSwitch
EndFunction
/*** Listen to these events ********************************************************************************/
InstallEventHandler({RapaGUI = Rapa_Events})
/*** Program Setup *****************************************************************************************/
/*** Main Loop *********************************************************************************************/
Repeat
WaitEvent
ForeverI have tried it with a Hollywood display inbedded
Code: Select all
<hollywood display="2" width="1880" Height="1080"/>I think it has to do with <vgroup> vs <hgroup>.
Has anyone got a snippet of code that shows fullscreen borderleess in RapaGUI thats working.
Thanks
Leo