- Gregory Rusak
- PowerBuilder
- Thursday, 9 May 2024 11:10 PM UTC
Hello,
We're trying to implement our own Right Mouse Button menu on the RichTextEdit control overriding the PopMenu property having set it to false.
What we don't understand is how to get the x and y coordinates of where the user had right clicked on the control. The rbuttondown EVENT mapped to pbm_renrbuttondown (Syntax 2) unlike Syntax 1, does not provide the xpos and ypos in order to provide these to a custom function to display a menu.
We also need these coordinates in order to provide our Sentry Spellchecker control with the arguments in the SSCE_CheckCtrlBackgroundMenu function to provide spelling suggestions. (Using SSCE Windows SDK with PowerBuilder (wintertree-software.com)
So how can you get those coordinates? Am I missing something basic here? Wouldn't be the first time.
We're on PowerBuilder 2022 R3 build 3356.
As always, any feedback is much appreciated.
Kind Regards,
Greg
Find Questions by Tag
Helpful?
If a reply or comment is helpful for you, please don’t hesitate to click the Helpful button. This action is further confirmation of their invaluable contribution to the Appeon Community.