maximise window to full screen when myprog.exe is launched

New to FreeBASIC? Post your questions here.
Post Reply
TESLACOIL
Posts: 1769
Joined: Jun 20, 2010 16:04
Location: UK
Contact:

maximise window to full screen when myprog.exe is launched

Post by TESLACOIL »

Q how do i maximise the window to full screen

eg when i double click myprog.exe , i want the FB prog to run full screen



'$lang:"qb"

screen 12

?" hello world full screen"


OS = winxp sp3
KristopherWindsor
Posts: 2428
Joined: Jul 19, 2006 19:17
Location: Sunnyvale, CA
Contact:

Post by KristopherWindsor »

Look at the flag options on this page:
http://www.freebasic.net/wiki/wikka.php ... engraphics
TESLACOIL
Posts: 1769
Joined: Jun 20, 2010 16:04
Location: UK
Contact:

Post by TESLACOIL »

Im not sure i understand how the flags work , this doesn't seem to do anything to the size of the window

Code: Select all

'$lang:"qb"

screen 12,,, (GFX_FULLSCREEN)

?" hello world full screen"


sleep:end
MichaelW
Posts: 3500
Joined: May 16, 2006 22:34
Location: USA

Post by MichaelW »

AFAIK the Screen syntax you are using is not available with -lang qb, so your choices for full-screen are -lang "fb" and -lang "fblite".
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Post by fxm »

Try

Code: Select all

'$lang:"qb"

__screen 12,,, 1

?" hello world full screen"


sleep:end
TESLACOIL
Posts: 1769
Joined: Jun 20, 2010 16:04
Location: UK
Contact:

gives an error

Post by TESLACOIL »

btw

'$lang:"qb"

__screen 12,,, 1

gives an error message that halts the compiler
Imortis
Moderator
Posts: 1924
Joined: Jun 02, 2005 15:10
Location: USA
Contact:

Post by Imortis »

Works fine here. Using the latest daily build.
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Post by fxm »

It works on my PC with :
fbc: FreeBASIC Compiler - Version 0.21.1 (08-11-2010) for win32 (target:win32)
OS: Windows XP (build 2600, Service Pack 2)

After some tests, it works from FreeBASIC version 0.21.0 (I kept installed on my PC all the official FreeBASIC versions from 0.12b : 14 versions!).
TESLACOIL
Posts: 1769
Joined: Jun 20, 2010 16:04
Location: UK
Contact:

the error

Post by TESLACOIL »

This is the Compiler Error i get with

Code: Select all

'$lang:"qb"

__screen 12,,, 1

?" hello world full screen"


sleep:end


Command executed:
"C:\Program Files\FreeBASIC\fbc.exe" "C:\Documents and Settings\a\Desktop\FREEBASIC NOTES\screenmax.bas"

Compiler output:
C:/Documents and Settings/a/Desktop/FREEBASIC NOTES/screenmax.bas(3) error 10: Expected '='
__screen 12,,, 1
^

Results:
Compilation failed

System:
FBIde: 0.4.6
fbc: FreeBASIC Compiler - Version 0.20.0 (08-10-2008) for win32 (target:win32)
OS: Windows XP (build 2600, Service Pack 3)
fxm
Moderator
Posts: 12107
Joined: Apr 22, 2009 12:46
Location: Paris suburbs, FRANCE

Post by fxm »

fxm wrote:It works on my PC with :
fbc: FreeBASIC Compiler - Version 0.21.1 (08-11-2010) for win32 (target:win32)
OS: Windows XP (build 2600, Service Pack 2)

After some tests, it works from FreeBASIC version 0.21.0 (I kept installed on my PC all the official FreeBASIC versions from 0.12b : 14 versions!).
Have you read my previous post above !
it works from FreeBASIC version 0.21.0
TESLACOIL
Posts: 1769
Joined: Jun 20, 2010 16:04
Location: UK
Contact:

just spotted that

Post by TESLACOIL »

just spotted that as i was posting, thought id post the error code up anyway

i had in my head i was 02 something, 02 zero, doh !

thx

ive had 2 days solid of nothing but weird bugs, brains getting a little frazzled, you know how it goes
Post Reply