Quantcast
Channel: SCN : All Content - PowerBuilder Developer Center
Viewing all articles
Browse latest Browse all 2935

Getting dragdrop process to release the mouse

$
0
0

PB .net 12.5.2

 

I've got a drapdrop operation happening, and some code in the dragleave event to check for certain conditions. If a certain condition is not met, then I display a simple "OK" messagebox. When the messagebox appears, clicking the OK button with the mouse does nothing, I have to use the enter key to "click" the OK button on the messagebox.

 

I'm guessing that the dragdrop operation has captured the mouse? How can I get the mouse released so it can be used to respond to the messagebox? At this point the dragdrop operation has lost relevance, and can be terminated.

 

dragleave (DragObject source) event code below

 

 

booleanlb_Valid

 

// Do a bunch of stuff to determine valid conditions

// ...

 

IF NOT lb_Valid THEN

       // Need to do something here to get the drag/drop to release the mouse it has captured
source.Drag(End!)
SetPointer(Arrow!)
messagebox("Error looking for Parameter Window", "Parameter Window not found")

end if

 

 

The source.Drag(End!) code does seem to end the drag operation, but the mouse click is still not affecting the messagebox OK button.

 

I guess I could be way off target on this. Thanks in advance for any thoughts on this.

 

Todd Oesterreich


Viewing all articles
Browse latest Browse all 2935

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>