no windows in browser like the soccer trainer?

Just starting out? Need help? Post your questions and find answers here.
User avatar
T4r4ntul4
Posts: 132
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands
Contact:

no windows in browser like the soccer trainer?

Post by T4r4ntul4 »

Hi all,

I have a question i didnt see on the forums yet.
I have tried the examples, but all of them are in windows in the browser, is there a way to have it 'fullscreen' like they did in the soccer trainer on the showcase page?
Ajm
Posts: 31
Joined: Wed Aug 26, 2015 1:52 pm

Re: no windows in browser like the soccer trainer?

Post by Ajm »

Hi,

I'm not sure but there is a section in the help called 'Screen'. I think this maybe what you want.
Regards

Andy
User avatar
T4r4ntul4
Posts: 132
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands
Contact:

Re: no windows in browser like the soccer trainer?

Post by T4r4ntul4 »

I want to use the form gadgets. I dont need that there are multiple windows on each other in the browser.

Can someone provide a simple example on how to achieve this?
Ajm
Posts: 31
Joined: Wed Aug 26, 2015 1:52 pm

Re: no windows in browser like the soccer trainer?

Post by Ajm »

You can use #PB_Window_Background in the openwindow statement.

Code: Select all

If OpenWindow(0, 0, 0, 320, 160, "ProgressBarGadget", #PB_Window_Background)
    TextGadget       (3,  110, 110, 250,  20, "ProgressBar Standard  (50/100)", #PB_Text_Center)
    ProgressBarGadget(0,  110, 130, 250,  30, 0, 100)
    SetGadgetState   (0, 50)   ;  set 1st progressbar (ID = 0) to 50 of 100
    TextGadget       (4,  110, 170, 250,  20, "ProgressBar Smooth  (50/200)", #PB_Text_Center)
    ProgressBarGadget(1,  110, 190, 250,  30, 0, 200, #PB_ProgressBar_Smooth)
    SetGadgetState   (1, 50)   ;  set 2nd progressbar (ID = 1) to 50 of 200
    TextGadget       (5, 200, 235, 200,  20, "ProgressBar Vertical  (100/300)", #PB_Text_Right)
    ProgressBarGadget(2, 370, 110,  30, 120, 0, 300, #PB_ProgressBar_Vertical)
    SetGadgetState   (2, 100)   ; set 3rd progressbar (ID = 2) to 100 of 300
EndIf
Regards

Andy
User avatar
Peter
Posts: 1197
Joined: Mon Feb 24, 2014 10:17 pm
Location: 127.0.0.1:9080
Contact:

Re: no windows in browser like the soccer trainer?

Post by Peter »

You can open a "fullscreen" window with the flag #PB_Window_Background.

for example:

Code: Select all

#FullScreenWindow = 0

OpenWindow(#FullScreenWindow, 0, 0, 0, 0, "FullScreen", #PB_Window_Background)
Greetings ... Peter
User avatar
T4r4ntul4
Posts: 132
Joined: Wed May 21, 2014 1:57 pm
Location: Netherlands
Contact:

Re: no windows in browser like the soccer trainer?

Post by T4r4ntul4 »

ah. thank you. I totally missed it when reading in the openwindow() help file.
Post Reply