|
-
Aug 6th, 2001, 01:13 AM
#1
Thread Starter
Lively Member
Get the position of the caret again
How can I get the position of the caret?I want to made my application has a feature like VB's Intellisense.
I want to get it's coordinate,not the amount of charators !
-
Aug 6th, 2001, 03:43 AM
#2
Fanatic Member
API functions.
Look into the GetCursorPos and the TrackMouseEvent API functions...
Hope this helps.
Laterz
Digital-X-Treme
Contact me on MSN Messenger: [email protected]
[VBCODE]Debug.Print Round(((1097) - ((55 ^ 5 + 311 ^ 3 - 11 ^ 3) _
/ (68 ^ 5))) ^ (1 / 7), 13)[/VBCODE]
-
Aug 6th, 2001, 07:12 AM
#3
Thread Starter
Lively Member
But I mean I want to get the position of the caret in a textbox,not the position of the mouse coursor.
-
Aug 6th, 2001, 11:33 AM
#4
Use the GetCaretPos API function.
VB Code:
Private Declare Function GetCaretPos Lib "user32" _
Alias "GetCaretPos" (lpPoint As POINTAPI) As Long
Private Type POINTAPI
x As Long
y As Long
End Type
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|