|
-
September 30th, 1999, 04:57 PM
#1
positioning a control at caret position in a reach text box - mdi app - help...
Hi all,
I need help with positioning a list box in a rich text box at the caret position.
The text box is in a from which is a member of an mdi form app.
In order to position the list box at the caret position, at first, I just used the GetCaretPos func and used the caret
Position strait to the list box top and left - but it didn't appear at the caret position - at all!
So, as someone suggested here, I transferred the caret position with ClienToScreen func to General screen coordinates, and tried to use these coordinates on the list box but still - the list box position will shift progrecively as the carets position will shift.
Can someone please give me some more detailed pointers to what I might be doing wrong - or that I didn't thougth of?…
Code samples will be appreciated - even very simplified…
Here is what I did - schematically…
Thanks In advance...
Dim Caretpos as POINTAPI
Dim Pos&
Pos = GetCaretPos form.whnd, Caretpos
ClientTosCreen Caretpos
List1.left = Caretpos.x
List1.top = Caretpos.y
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
|