Display or not the borders of the window

Find quick help here to get you started with Hollywood
Post Reply
User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Display or not the borders of the window

Post by NubeCheCorre »

Hi Guys

i cannot find (honestly i do not remember anymore) which function i have to use to not show the borders of the main window of my project..

I did a simple script, just to learn Hollywood, and i remember well i was able to set up or not the borders of my window..

Here my code:

Code: Select all


@VERSION 5,0
@APPTITLE "Hello Hollywood"
@APPVERSION "$VER: Hello Hollywood 1.0 (12-March-12)"

; Dichiaro-Assegno variabili musica e grafica

img_1$ = "DH3:Programmazione/Hollywood/MyWorks/img/disk_1.png"
music_1$ = "DH3:Programmazione/Hollywood/MyWorks/msx/title.mp3"
Global id_gfx_0 = LoadBGPic(0, img_1$,{Transparency=$CCCCCC, Link = False})
Global id_msx_0 = OpenMusic(0, music_1$)
DisplayBGPic(id_gfx_0)
PlayMusic(id_msx_0)

Function p_HandlerFunction(msg)
	Switch(msg.action)
	Case "CloseWindow":
		CloseMusic(id_msx_0)
	        CloseDisplay(id_gfx_0)
	EndSwitch
EndFunction

InstallEventHandler({CloseWindow=p_HandlerFunction}) 
Repeat
	WaitEvent()
Forever

End()


PEB
Posts: 536
Joined: Sun Feb 21, 2010 1:28 am

Re: Display or not the borders of the window

Post by PEB »

To start with a borderless display, you can use this at the beginning of your code:
@DISPLAY {Borderless=True}

To change to a borderless display while the program is running, you can use:
SetDisplayAttributes({Borderless=True})

User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: Display or not the borders of the window

Post by NubeCheCorre »

Thanks Friend! ^_^

User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: Display or not the borders of the window

Post by NubeCheCorre »

i found a strange behaviour(?) when switching from window mode to fullscreen mode using the key combo AMIGA + RETURN. When i switch from window to fullscreen and then return to window mode, my window has the borders even if i set BORDERLESS = TRUE

Is it normal or it's a bug?

User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: Display or not the borders of the window

Post by NubeCheCorre »

Another thing.. i am not able to use ScaleWidth="200%" and ScaleHeight="200%" as Hollywood tells me that it expects a number but if i write it without "", it tells me: "Unexpected symbol" ..

What's wrong?

User avatar
airsoftsoftwair
Posts: 4392
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: Display or not the borders of the window

Post by airsoftsoftwair »

NubeCheCorre wrote:Another thing.. i am not able to use ScaleWidth="200%" and ScaleHeight="200%" as Hollywood tells me that it expects a number but if i write it without "", it tells me: "Unexpected symbol" .. What's wrong?
Ok, that one is clearly a bug. I'll fix this for the next update.

User avatar
NubeCheCorre
Posts: 77
Joined: Mon Mar 19, 2012 1:24 am
Contact:

Re: Display or not the borders of the window

Post by NubeCheCorre »

thanks Andreas! :)

Post Reply