>>That check is there because if there is selected text, there is no caret, so there is no caret position, and since a key was used to call the context menu, the mouse position should not be used, since the mouse cursor could be anywhere, that is why the positon defaults to about 1/3 right and down of the control.
>
>
>Hi Carlos,
>
>Thanks for your explanation. However in my tests, even when text is highlit, GetCaretPos() returns the point where the "select action" starts. Therefore GetCaretPos() still works and should be better than applying a preset position for large controls.
>
>Ben
You are right, thank you.
Carlos
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only