Beginner Questions
#9
This may come in handy:

Code:
sub ptext(lne,position,text$, view$)

local charheight, charwidth
charheight = draw get "Max-Text-Height", view$
charheight=charheight
charwidth = DRAW GET "Text-Width", "█", view$
if charwidth=0 then
charwidth = DRAW GET "Text-Width", "-", view$
endif

draw text (position*charwidth),((lne)*charheight), text$, view$


end sub

I use this to ptint text on a view, it gives me good control over text placement. One needs to use a fixed face font to make it work well.
Reply


Messages In This Thread
Beginner Questions - by MrEntropy - 04-07-2020, 07:01 PM
RE: Beginner Questions - by bbjimmy - 04-08-2020, 03:56 PM
RE: Beginner Questions - by MrEntropy - 04-09-2020, 06:27 AM
RE: Beginner Questions - by MrEntropy - 04-11-2020, 12:37 PM
RE: Beginner Questions - by bbjimmy - 04-12-2020, 08:42 PM
RE: Beginner Questions - by MrEntropy - 04-13-2020, 09:54 AM
RE: Beginner Questions - by bbjimmy - 04-14-2020, 09:46 AM
RE: Beginner Questions - by MrEntropy - 04-19-2020, 03:24 PM
RE: Beginner Questions - by bbjimmy - 04-21-2020, 09:51 AM
RE: Beginner Questions - by MrEntropy - 04-22-2020, 07:42 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)
Free Web Hosting