How do I make a borderless fullscreen in RAPAGUI

Discuss GUI programming with the RapaGUI plugin here
Post Reply
User avatar
Redlion
Posts: 125
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

How do I make a borderless fullscreen in RAPAGUI

Post 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
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How do I make a borderless fullscreen in RAPAGUI

Post 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
Christos
User avatar
Redlion
Posts: 125
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: How do I make a borderless fullscreen in RAPAGUI

Post by Redlion »

@ plouf

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

How do I open a fullscreen in RapaGUI ?

Cheers
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How do I make a borderless fullscreen in RAPAGUI

Post 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
Christos
User avatar
Redlion
Posts: 125
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: How do I make a borderless fullscreen in RAPAGUI

Post by Redlion »

@ plouf

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

Cheers
Leo
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How do I make a borderless fullscreen in RAPAGUI

Post 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 !
Christos
User avatar
Redlion
Posts: 125
Joined: Sun Jul 10, 2011 5:05 am
Location: Perth, Western Australia

Re: How do I make a borderless fullscreen in RAPAGUI

Post 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
----------------------------------------------------------------------------------------
Redlion
Sam460 Lite
A4000 A3000 A2000 A1200 A1000 A600 A500 CD32
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How do I make a borderless fullscreen in RAPAGUI

Post 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...
plouf
Posts: 666
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: How do I make a borderless fullscreen in RAPAGUI

Post 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 ..
Christos
User avatar
airsoftsoftwair
Posts: 5830
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How do I make a borderless fullscreen in RAPAGUI

Post 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.
Post Reply