Locate command not working in v1.45
BlitzPlus Forums/BlitzPlus Programming/Locate command not working in v1.45
| ||
I tried using the locate command to view some data my app was outputting and the command seems to be missing.Locate x,y Definition Locates the text commands starting point on the screen. Parameters x=x coordinate on the screen y=y coordinate on the screen Description Sometimes you want to place the PRINT and Input$ commands at a specific location on the screen. This command locates the 'cursor' to the designated location. Example ; Locate example strName$=Input$("What is your name?") Locate 100,200 Print "Hello there, " + strName$ While Not KeyHit(1) Wend |
| ||
The Locate command does not exist in BlitzPlus. Use Text instead. |
| ||
well if thats the case then why is that example in the Blitz command examples? |
| ||
It is probably a hangover from the old Blitzbasic (2d) and is also part of Blitz3d which had a 'console' mode prior to setting a graphical mode. |
| ||
But text works different in B+. Can somebody please write me a function to replace it? |
| ||
simply use Text X_Coord,Y_Coord,txt$ rather than Locate X_Coord,Y_Coord:Print txt$ |
| ||
Text is a graphics command in B+. I stink at graphics. If I do graphics and it opens that other window (which I don't want) then it texts in there, and it performs really badly. If I use it out of graphics mode, it complains about an invalid buffer handle. |
| ||
Then use print without locate... print in B2D and B3D is just as slow as text in B+, if not slower.. |
| ||
Make sure you use Setbuffer Backbuffer(), your Flip command, and Cls. There should be no issue. |