maximise window to full screen when myprog.exe is launched
maximise window to full screen when myprog.exe is launched
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
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
-
- Posts: 2428
- Joined: Jul 19, 2006 19:17
- Location: Sunnyvale, CA
- Contact:
Look at the flag options on this page:
http://www.freebasic.net/wiki/wikka.php ... engraphics
http://www.freebasic.net/wiki/wikka.php ... engraphics
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
Try
Code: Select all
'$lang:"qb"
__screen 12,,, 1
?" hello world full screen"
sleep:end
gives an error
btw
'$lang:"qb"
__screen 12,,, 1
gives an error message that halts the compiler
'$lang:"qb"
__screen 12,,, 1
gives an error message that halts the compiler
the error
This is the Compiler Error i get with
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)
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)
Have you read my previous post above !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!).
it works from FreeBASIC version 0.21.0
just spotted that
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
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