the link you post was helpful
i just solved making a own function to create texts and delete if are temporary texts.
Now i trying to draw the texts front of the lines drawings, because appears back to the drawline or ellipses and box
thanks for the data!
function text(texto$,x,y,align_horizontal, kill)
if text_Color -1 then text_color = makecolor(20,20,20)
t as mytext
t.kill = kill
t.text = createtext(texto$)
SetTextDepth(t.text, 0)
SetTextAlignment(t.text, align_horizontal)
SetTextPosition(t.text,x,y)
SetTextSize(t.text,text_size)
settextcolor(t.text, getcolorred(text_color),getcolorgreen(text_color),getcolorblue(text_color),255)
drawtext(t.text)
_mytext.insert(t)
endfunction
function update_mytext()
for n = _mytext.length to 0 step -1
if _mytext[n].kill = 1
deletetext(_mytext[n].text)
_mytext.remove(n)
endif
next
endfunction
function eliminar_mytext()
for n = _mytext.length to 0 step -1
deletetext(_mytext[n].text)
_mytext.remove(n)
next
endfunction