Unable to create scalable window?

BlitzPlus Forums/BlitzPlus Programming/Unable to create scalable window?

matt!(Posted 2004) [#1]
I've tried this:

Graphics 240,320,16,3

...but it doesn't work. It tries to go fullscreen, but it should just open a scalable window!

Any ideas?


CS_TBL(Posted 2004) [#2]
see the help for CreateWindow


CS_TBL(Posted 2004) [#3]
or do this :)

appwindow=CreateWindow("blah",0,0,640,480,0,3)

appcanvas=CreateCanvas(0,0,640,480,appwindow)
SetGadgetLayout appcanvas,1,1,1,1

SetBuffer CanvasBuffer(appcanvas)
Text 80,80,"Booh!"
Oval 300,200,70,60
FlipCanvas appcanvas

Repeat
	WaitEvent()
	If EventID()=$803 quit=True
Until quit
End



matt!(Posted 2004) [#4]
Thanks, I have switched to CreateWindow rather than Graphics, as the "3" option in that seems to be baulked.


Azathoth(Posted 2004) [#5]
I read one of the updates changed '3' to something with the screen flipping, but the docs still have the old meaning.


matt!(Posted 2004) [#6]
Thanks, I'll try to get the docs changed.