- Tracy Lamb
- PowerBuilder
- Thursday, 14 July 2022 04:39 PM UTC
Hi all,
I have a window with a listbox on the left, a datawindow on the right and a splitbar in between. This is an MDI application. I'm trying to get the popup menu to display where the user clicked the right mouse button.
I'm using the rbuttonup event. Everything works fine, except the popup menu displays over the listbox, not the datawindow. There is no rbuttonup code in the listbox. Here's the code for rbuttonup event on the datawindow:
// Over-ride -
m_bt_rmb lm_popup
this.AcceptText()
// Create popup menu
lm_popup = create m_bt_rmb
lm_popup.of_SetParent (this)
// Popup menu
lm_popup.m_tableman.PopMenu (this.PointerX(),this.PointerY() )
destroy lm_popup
return 1
Not a show stopper, but probably needs to be fixed.
TIA,
~~~Tracy
PB2021 Build 1509
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.