Have a look at this bit of code
and this
SetGraphicsDriver GLGraphicsDriver() GLGraphics 800,600,16 'glClear GL_COLOR_BUFFER_BIT 'uncomment if you get display corruption. GLDrawText "Hallo",0,0 Flip WaitKey
and this
SetGraphicsDriver GLMax2DDriver() Graphics 800,600,16 DrawText "hallo",50,50 Flip WaitKey EndGraphics()