Using Graphics vs. CreateWindow

BlitzPlus Forums/BlitzPlus Programming/Using Graphics vs. CreateWindow

rogue(Posted 2004) [#1]
I am working on a game and need to be able to run in either full screen (exclusive) mode or in a windowed mode. I have been using the Graphics command to do this without a problem. However, I also want to be able to have Buttons and other Gadgets on the screen. These all seem to require a Canvas, which requires a Panel, which requires a Window.

Is there a way to use the CreateWindow function to create a full screen exclusive window?

- Ken


WolRon(Posted 2004) [#2]
TBH, I don't know, but I do know that some of the standard commands that are available in Graphics mode are not available while using B+ GUI gadgets.

For instance, commands like KeyDown() don't work with Window gadgets.

It's kind of two different approaches to programming. One tailors to gaming, the other tailors to applications.


CS_TBL(Posted 2004) [#3]
only thing I can come up with is the fullscreen game running in a canvas rather than a gfx-mode ..

this canvas is then on a window, flags to 0, the size of the desktop ...

for a 640x480 game on a hi-res screen you could stretch the canvas then... prolly not the best method as it'll blur a bit ..