Question about displaying strings
|
10-21-2019, 06:58 PM
Post: #10
|
|||
|
|||
RE: Question about displaying strings
(10-21-2019 04:29 AM)Wes Loewer Wrote: In my example, I wrote My guess would be that if you don't declare a GROB, its initial dimensions are set to zero. TEXTOUT (..._P) must have built-in protection mechanisms against overwriting RAM outside predeclared bounds, so nothing bad happens (processor does not perform erroneous write), but the procedure keeps being executed until the last glyph is processed. And since you don't see what's printed in the GROB, the issue goes unnoticed. This would explain why you get the right result. TEXTOUT (..._P) simply returns coordinates of where the end of the string would be if it were printed. (I did not test it, so I may be wrong. My guess is based on the HPP behavior: if a string longer than the remaining space is printed, it's simply truncated.) Darius |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)