- John Vanleeuwe
- PowerBuilder
- Friday, 31 August 2018 02:26 PM UTC
Hi all,
Lets say i have an overview screen with hundreds of records, which is being refreshed autmatically. Every 5 seconds the retrieve function is done.
Now on the rightclick event of the datawindow , our users can pop a menu with some additionnal functions.
What happens is , is when users are rightclicking and the menu pops open, the auto-retrieve function can kick in and change the focus from the current row the user clicked right on , to the first row of the datawindow. I can't change this.
In my menu i have functions taking the actual row selected and performing some actions on this record. It happens that the autoretrieve function sets the cursor to the first row , while the user is still looking at our menu to choose from.
In the clicked event of the menu , i can code to stop the autoretrieve function. No problem there, but of course i want the autoretrieve function to kick in again after the users has choosen from our menu , or hasn't choosen any menu at all.
I thought there would be a destroy/destructor/close event for menu's , but this doesn't exist.
How can i fix this iissue without having to start the start of the autoretrieve function after every menu item ?
Hope i made some sense here :)
TIA
John
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.