Hi Cetin,
> Check Message #
576055LOL! Yes, deja vu all over again (not sure how well that translates).
Your original code is great - but because it is based on GetCaretPos(), it fails to recognize when a user has re-positioned the caret using the keyboard cursor keys (left, right, up, down, home, end) or the mouse. So if a user moves the caret and then strikes a hotkey to invoke a pop menu, GetCaretPos() returns the X, Y coordinates of the last visually rendered char the user typed - not the current X, Y coordinates of the caret.
Does my description of the problem make sense or do you think what I'm seeing is specific to my environment (VFP 8 sp1 or VFP 9, XP SP 2)
Thanks again :) for your help on this topic!
Malcolm