canvas exists ?

BlitzPlus Forums/BlitzPlus Programming/canvas exists ?

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.

Well, if you create a canvas, then free it, you should make sure the handle is null (or 0), then you can do something like:-

hCanvas = CreateCanvas(blah blah)

FreeGadget hCanvas
hCanvas = 0

If hCanvas <> 0
DoSomething() ;The canvas is alive and well
Else
MaybeDoSomethingElse() ;Bugger, its gone!
End If

That should do the trick! :)

Dabz