Page 1 of 1

no windows in browser like the soccer trainer?

Posted: Thu Dec 31, 2015 1:06 pm
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?

Re: no windows in browser like the soccer trainer?

Posted: Thu Dec 31, 2015 2:14 pm
by Ajm
Hi,

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

Re: no windows in browser like the soccer trainer?

Posted: Thu Dec 31, 2015 2:30 pm
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?

Re: no windows in browser like the soccer trainer?

Posted: Thu Dec 31, 2015 2:45 pm
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

Re: no windows in browser like the soccer trainer?

Posted: Thu Dec 31, 2015 2:49 pm
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

Re: no windows in browser like the soccer trainer?

Posted: Thu Dec 31, 2015 2:50 pm
by T4r4ntul4
ah. thank you. I totally missed it when reading in the openwindow() help file.