Page 1 of 2
Rapagui disable normal display
Posted: Tue May 26, 2020 12:54 am
by lazi
Just found, when I add
@REQUIRE "rapagui" to the beginning of the script and nothing more rapagui related, the normal Hollywood display don't show.
The program runs, but without display.
I'd like to add a preferences window by RapaGUI to a script which is using entirely the Hollywood display library. MUIRoyale behave normal, doesn't oppress the hw display.
Is it some RTFM or a bug, can't decide yet.

Re: Rapagui disable normal display
Posted: Tue May 26, 2020 1:21 am
by lazi
A workaround is if loading RapaGUI by
LoadPlugin().
So it seems a bug to me.
Re: Rapagui disable normal display
Posted: Tue May 26, 2020 2:37 am
by lazi
Unfortunately the workaround not plays well on win32: "Cannot set adapter!"
Re: Rapagui disable normal display
Posted: Tue May 26, 2020 3:25 am
by lazi
Unfortunately I cannot edit my previous posts, so sorry for the flooding.
You have to use OpenDisplay(1) after
@REQUIRE "rapagui" to have normal display.
It works on win32 too, but brings another problem which I will report after a more adequate investigation

Re: Rapagui disable normal display
Posted: Tue May 26, 2020 9:01 pm
by msu
A code example would be helpful.
Re: Rapagui disable normal display
Posted: Wed May 27, 2020 8:05 am
by lazi
As you wish:
Code: Select all
@REQUIRE "rapagui"
@DISPLAY {mode="windowed",width=640,height=480}
NPrint("Hello there!")
WaitLeftMouse
Re: Rapagui disable normal display
Posted: Wed May 27, 2020 7:36 pm
by msu
Hi lazi,
you have to integrate the display into RapaGUI.
Example:
Code: Select all
@REQUIRE "RapaGUI"
;@DISPLAY {mode="windowed",width=640,height=480}
GUI$=[[<application id="app">
<window id="Main" Title="Test">
<vgroup>
<hollywood display="1" width="640" height="480"/>
</vgroup>
</window>
</application>]]
moai.CreateApp(GUI$)
Function p_EventFunc(msg)
EndFunction
InstallEventHandler({RapaGUI=p_EventFunc})
NPrint("Hello there!")
Repeat
WaitEvent
Forever
Re: Rapagui disable normal display
Posted: Wed May 27, 2020 7:48 pm
by lazi
Thanks for your help, but I don't want to do that, because I want to use fullscreen even if the pasted example using windowed.
As I said before, it works with an
OpenDisplay(), but don't know if it is an intended behaviour or not.
Re: Rapagui disable normal display
Posted: Wed May 27, 2020 8:51 pm
by msu
I honestly don't know of any GUI system that runs on user-defined screens.
Think you will have to decide there.
Re: Rapagui disable normal display
Posted: Wed May 27, 2020 10:38 pm
by lazi
What I mean Hollywood display is opens in a normal GUI window or if fullscreen -especiallya on Amiga- it is a normal system pubscreen.
Beside this window or on that screen we can open another windows. And that windows can be MUI windows created by one of our GUI plugins.
I just wanted to say, that with
@REQUIRE "rapagui", the normal default Hollywood display (window) not displayed at all which should not necessary.
For example with
@REQUIRE "muiroyale" which uses the same GUI on Amiga (MUI) as RapaGUI works nicely with the default Hollywood window.
And rapagui is working too after an OpenDisplay(1) instruction.
The normal behaviour that you can freely use GUI plugin windows and Hollywood display windows together. Only the two GUI plugins can't be used together.
And finally I have found in the RapaGUI docs, (so it was RTFM):
- RapaGUI automatically hides all Hollywood displays on startup whereas MUI
Royale doesn't do this. On MUI Royale you manually have to declare the
default display as hidden.