Fullscreen canvas

BlitzPlus Forums/BlitzPlus Programming/Fullscreen canvas

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

something like this should do it....

Global dx = GadgetWidth(Desktop()) 		; get the desktop size
Global dy = GadgetHeight(Desktop()) 	; get the desktop size

Global winMain = CreateWindow("",0,0,dx,dy,0,0)

Global Canvas = CreateCanvas(0,0,GadgetWidth(winMain),GadgetHeight(winMain),winMain)
btnNext = CreateButton("Hello",200,200,300,300,Canvas)	
SetBuffer CanvasBuffer(Canvas)

; main loop
Repeat

	id = WaitEvent()
		Select id

			Case $103: End
 
		End Select

Forever