Textfield Cursor

BlitzPlus Forums/BlitzPlus Programming/Textfield Cursor

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

This should help:

;put these two lines into your user32.decls file
;.lib "user32.dll"
;SendMessage%(hwnd, msg, wParam, mParam):"SendMessageA"

Function SelectText(textgad,start,fin=-1)
	If fin=-1 Then fin = start
	;Local EM_SETSEL=$B1
	sendmessage(QueryObject(textgad,1),$B1,start,fin)
End Function