TextArea selection

Blitz3D Forums/Blitz3D Beginners Area/TextArea selection

REDi(Posted 2004) [#1]
Hi all

I was wondering if there is a way of changing the cursor position and selection length in a TextArea? Also is reading the selected text from a HTMLView possible?


Beaker(Posted 2004) [#2]
Solution to first problem:

; add these 2 lines to your user32.decls file
;.lib "user32.dll"
;SendMessage%(hwnd, msg, wParam, mParam):"SendMessageA"

Function SelectText(textarea,start,fin=-1)
	If fin=-1 Then fin = start
	sendmessage(QueryObject(textarea,1), $B1,  start,fin)
End Function



I don't think you can do the latter.


REDi(Posted 2004) [#3]
Thanx alot MasterBeaker :)

where can i find a list of whats in these dll's? so i can work this sort of thing out for myself.

Oh and one more question... how can i get the url$ from a HtmlView?