Opening additional windows?

BlitzMax Forums/BlitzMax Beginners Area/Opening additional windows?

fredborg(Posted 2004) [#1]
Hi,

I was wondering if anyone had some ideas about how to open additional windows and draw to them?

Something along the lines of:
Graphics 640,480,0 ' Create a default window
mywin = CreateWindow(x,y,w,h,flags) ' Create a new OS window
UseWindow(mywin) ' Use mywin for drawing
DrawRect 5,5,10,10 ' Draw a rect in mywin
Flip ' Flip mywin buffers
UseWindow(0) ' Use default graphics window
DrawRect 10,10,5,5 ' Draw a rect in default window
Flip ' Flip default window buffers
I guess it will be included in the GUI module, but it would be nice to get started now :)


QuickSilva(Posted 2004) [#2]
I cannot even get the defualt debug window open, only the fullscreen mode. Any ideas? I`m in debug mode.

Jason.


Barnabius(Posted 2004) [#3]
Graphics x,y,0

Note the '0' as the last parameter. This will open a window, not the full screen.

Barney


Perturbatio(Posted 2004) [#4]
There's a win32.mod in the public mod folder, but I'm not sure how good it is at the moment.