ListRequest goes behind the screen, can i get it front?

Find quick help here to get you started with Hollywood
Post Reply
Bugala
Posts: 1260
Joined: Sun Feb 14, 2010 7:11 pm

ListRequest goes behind the screen, can i get it front?

Post by Bugala »

If you check here AmigaBill is starting my game on AOS4, and oddly, ListRequest goes Behind the screen: https://www.twitch.tv/videos/2327633418?t=04h08m25s

Is this supposed to be this way, and is there a way to get the ListRequest to show in front?

The code I am using was made by Plouf actually:

Code: Select all

 Function ScreenModeRequest(DisplayModes,CustomTitle$,CustomText$)
	Local Screensizes = CreateList()
	For Local k = 0 To ListItems(DisplayModes) - 1
		 InsertItem(ScreenSizes,DisplayModes[k].Width.." x "..DisplayModes[k].Height)
	Next
	If CustomTitle$=Nil
		CustomTitle$="Screen Mode Request"
	EndIf
	If CustomText$=Nil
		CustomText$="Please Select Screen Size"
	EndIf
	selected = ListRequest(CustomTitle$,CustomText$,ScreenSizes)
	Return(DisplayModes[selected].Width,DisplayModes[selected].Height)
   EndFunction

   p_scrWidth, p_scrHeight = ScreenModeRequest(GetDisplayModes(),Nil,"for MONITOR SCREEN")
plouf
Posts: 585
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: ListRequest goes behind the screen, can i get it front?

Post by plouf »

just a note
this ,as i see, happens in AOS3/4 only, as under windows and morphos seems work as intented ? (correct me if wrong)

must have to do with way os3/4 handled, as there was similar behavior to other oses long ago and fixed ! :)
Christos
phipslk
Posts: 34
Joined: Sun Oct 29, 2023 7:21 pm

Re: ListRequest goes behind the screen, can i get it front?

Post by phipslk »

perhaps try ActivateDisplay(id) before calling the screen mode requester?
Or use

Code: Select all

CreateDisplay(id, {Mode = "ModeRequester", Active=True})
Bugala
Posts: 1260
Joined: Sun Feb 14, 2010 7:11 pm

Re: ListRequest goes behind the screen, can i get it front?

Post by Bugala »

@phipslk

Good idea, something like that might work. Going to give it a try at some point.
User avatar
airsoftsoftwair
Posts: 5626
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: ListRequest goes behind the screen, can i get it front?

Post by airsoftsoftwair »

This is strange. Please post an MCVE.
plouf
Posts: 585
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: ListRequest goes behind the screen, can i get it front?

Post by plouf »

the example in his first post do that :)
Christos
Bugala
Posts: 1260
Joined: Sun Feb 14, 2010 7:11 pm

Re: ListRequest goes behind the screen, can i get it front?

Post by Bugala »

airsoftsoftwair wrote: Mon Dec 23, 2024 11:14 pm This is strange. Please post an MCVE.
as plouf said, example in first post should do that already, although I havent been able to test it myself. Not Minimum possible, but small enough I guess.
plouf
Posts: 585
Joined: Sun Feb 04, 2018 11:51 pm
Location: Athens,Greece

Re: ListRequest goes behind the screen, can i get it front?

Post by plouf »

after some testing...

to answer MCVE seems that getdisplay() brings screen on front and too fast i.e.

Code: Select all

GetDisplayModes()
ListRequest("title","body",{1,2,3})
to answer original "can i get to front" , seems that workarounds are
1) a minor delay i.e wait(20)
2) also if you start with hidden display as said in other post will have no problem i.e. @DISPLAY {hidden=True}
3) final you can closedisplay(1) before listrequest, and then opendisplay(1) (or dont open again :)
Christos
Post Reply