Page 1 of 1

How do I make a borderless fullscreen in RAPAGUI

Posted: Tue Jun 17, 2025 3:25 am
by Redlion
Hi all,

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
Forever
This works kind of works but I wanted the buttons on the right side of the screen.

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>
      <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
Forever
This one gives me a full screen but no buttons and no image.

I have tried it with a Hollywood display inbedded

Code: Select all

<hollywood display="2" width="1880" Height="1080"/>
and that shows the same problem.

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

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Tue Jun 17, 2025 6:49 am
by plouf
try adding margin="0px" and dragbar="false"

btw why not open true fullscreen... if its fullscren ??

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" closegadget="false" MaximizeGadget="false" minimizegadget="false" dragbar="false" margin="0px">
    <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
Forever

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Tue Jun 17, 2025 11:12 am
by Redlion
@ plouf

I tried what you sugested, but that does not work.

How do I open a fullscreen in RapaGUI ?

Cheers
Leo

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Tue Jun 17, 2025 11:17 am
by plouf
What os?
My example of your example. Opens screen with 0 margin left bottom top, and right size only has bitttons

I mena i see no window "back" there

Tested under windows

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Tue Jun 17, 2025 11:27 am
by Redlion
@ plouf

I am using Amiga OS4, I understand that you can not have borderless on Windows.

Cheers
Leo

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Tue Jun 17, 2025 10:32 pm
by plouf
i see
did some tests, img does NOT display in os4 and amikit
but it does in unpatched os3.9 so must some conflict

btw oot but this

Code: Select all

<window id="mainwin" title="" width="920" height="580" borderless="true"
     notify="closerequest" closegadget="false" MaximizeGadget="false" minimizegadget="false" dragbar="false" sizegadget="false" margin="0px" >
gives me a nice borderles under windowsOS :) , even if manual says borderless is not supported !

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Wed Jun 18, 2025 3:34 am
by Redlion
@ plouf

Thanks for looking into this form me, you have confirmed that something is not correct within the latest versions of AmigaOS4 and Hollywood 9.

I will log a bug report, and see if there is a work around.

Thanks agian

Leo

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Sun Jun 22, 2025 5:14 pm
by airsoftsoftwair
This could be a MUI bug. When I try your example here on AmigaOS 3 with MUI 5, graphics are drawn over the window border and the window is magically given scrollbars. This is all beyond RapaGUI's control. I have never seen an app that opens a fullscreen window with MUI and I'm not really sure if that is possible at all. It looks like the fact that the window has the same dimensions as the screen messes up some MUI logic...

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Sun Jun 22, 2025 9:52 pm
by plouf
to my my understanting , having the title window, with th mui added gadget may be MUI limitation

BUT redlion sample shows that image do NOT display at all ..

Re: How do I make a borderless fullscreen in RAPAGUI

Posted: Sun Jun 29, 2025 6:36 pm
by airsoftsoftwair
plouf wrote: Sun Jun 22, 2025 9:52 pm BUT redlion sample shows that image do NOT display at all ..
Yes, but there are lots of other strange things going on like the window having a scrollbar, graphics drawn over the window border, etc. This all looks like MUI can't handle this. I don't think RapaGUI can do anything about it but I'll check.