[B+] This is not normal :(

Blitz3D Forums/Blitz3D Beginners Area/[B+] This is not normal :(

Apollonius(Posted 2003) [#1]
Well look at this:


see thoses tool bar (borders) they arent suppose to be on the screen! i did a cls!

graphics 800,600,32
SetBuffer BackBuffer()

cls
Text 0,10, "This is some text printed on the graphic screen (and a white box)!  Press ESC ..."
Rect 100,100,200,200,1
Flip


WaitKey()
End



How can i fix it!? Else all game are screwed because I can't get ride of it.


FlameDuck(Posted 2003) [#2]
You can uninstall whatever program is creating them. :o>


CS_TBL(Posted 2003) [#3]
err.. exactly what is the problem? :)

All I saw was a black screen, a white box and some text.

And after pressing [esc] the app quits.

btw.. still not using a canvas eh ? :) what about this: using a fullscreen b+ canvas your monitor doesn't need to switch to another res (which takes time and is usually kinda crappy)


Apollonius(Posted 2003) [#4]
I dont even know whats canvas... im new to b+, only been 3days,

U know on windows u can customize ur desktop well heress mine:

thats where thoses tool bar are from.

I don't want them to show ingame, ive used other program that didnt make thoses thing show :(

Does anyone know how to fix it :(


CS_TBL(Posted 2003) [#5]
ok, listen: never ever use the 'graphics' command again in blitzplus!

just don't !


use a canvas, in another post of you, I've put a little example about how to use a canvas.

a canvas is a square in which you can draw with the common gfx commands (line, rect, plot, txt etc.). that square is placed on a window or a panel.


ashmantle(Posted 2003) [#6]
ok, listen: never ever use the 'graphics' command again in blitzplus!

just don't !


why?


Apollonius(Posted 2003) [#7]
theres no info on canvas anywhere and what does that have to do with my problem :|


BlitzSupport(Posted 2003) [#8]
What are you running to customise the desktop? Looks like it's forcing itself to be on top all the time...


Neo Genesis10(Posted 2003) [#9]
Ive not tried using Blitz+ with toolbars, but I can see why its a problem. Since your actual Windows GUI is to blame it could be difficult to avoid (I'm fairly fresh at the intricacies of Blitz+ myself). Heres a small demo on how to use canvases.
window = CreateWindow("My Canvas Window", 0, 0, ClientWidth(Desktop ()), ClientHeight(Desktop()) )
canvas = CreateCanvas(0, 0, ClientWidth(window), ClientHeight(window), window )
SetGadgetLayout canvas, 1, 1, 1, 1

SetBuffer CanvasBuffer(canvas)
Text 0, 10, "This is some text printed on the graphic screen (and a white box)! Press ESC ..."
Rect 100,100,200,200,1

Repeat
	event = WaitEvent (1)
Until event = $803



CS_TBL(Posted 2003) [#10]
Well 'why'? I don't see any point in using 'graphics' instead of a canvas. It only creates chaos and problems. Just use a canvas instead. And no info about a canvas? it's in the help for sure..

otherwise type: createcanvas

put the cursor on the word and hit [F1] twice.


Apollonius(Posted 2003) [#11]
Well thats nice but thats not full screen ^^


Beaker(Posted 2003) [#12]
Have you tried it with debug mode off?
OR change your Graphics line to:
Graphics 800,600,0,1


Apollonius(Posted 2003) [#13]
Yes tryed that ^^


CS_TBL(Posted 2003) [#14]
what do you mean, "not full screen"? the canvas version?


Apollonius(Posted 2003) [#15]
yes


CS_TBL(Posted 2003) [#16]
create a window, the size of your resolution, and set the flag to 0. (see the help for 'flags')

place a canvase on the window, the canvas should have the same size as the window.

now, this canvas will be your gfx output.

you can also choose to create a smaller canvas (like 640x480) and stretch it fullscreen..

http://www.blitzbasic.co.nz/bbs/posts.php?topic=26429

check that example I made, below.