x = starting x coordinate to dxPrint dxText y = starting 4 coordinate to dxPrint dxText string$ = string/dxText to dxPrint center x = optional; true = center horizontally center y = optional; true = center vertically |
Prints a string at the designated screen coordinates. You can center the dxText on the coordiates by setting center x/center y to TRUE. This draws the dxText in the current drawing dxColor. Note: Printing a space with dxText will NOT render a block - a space is an empty value. So printing " " will not make a box appear. |
; dxText example ; enable graphics mode Graphics 800,600,16 ; wait for ESC key before ending While Not dxKeyHit(1) ;dxPrint the dxText, centered horizontally at x=400, y=0 dxText 400,0,"Hello There!",True,False Wend |