miniB3D floating windows and event

BlitzMax Forums/BlitzMax GUI Programming/miniB3D floating windows and event

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.

Its not possible to use MaxGui in graphics-mode. You must use a Canvas:
Strict 

Local window:TGadget=CreateWindow("My Canvas",0,0,320,320)
Local canvas:TGadget=CreateCanvas(0,0,320,240,window)


CreateTimer 60

While WaitEvent()
	Select EventID()
		Case EVENT_TIMERTICK
			RedrawGadget canvas

		Case EVENT_GADGETPAINT
			SetGraphics CanvasGraphics(canvas)
			Cls

			Flip

		Case EVENT_APPTERMINATE
			End

	End Select
Wend


I dont know if if the miniB3d version you use has canvas support...