View Single Post
  #2  
Old 11-28-2007, 10:03 PM
Admins Admins is offline
Graal Administration
Join Date: Jan 2000
Location: Admins
Posts: 11,693
Admins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud ofAdmins has much to be proud of
There are different ways to detect that.

1. Use the built-in dragndrop system: MyControl.canmove = true; MyControl.clipmove = false, and then write code into "function MyControl.StopDrag"

2. When you start clicking in a control and then move the mouse outside then normally the previous control is getting the onMouseUp

3. Force that the GraalControl has the focus with GraalControl.makefirstresponder(true) and then just update the position of your dragndrop control to match the mouse position until the mouse has been released. It is easy to detect if the mouse is still down while the graalcontrol has the focus (variable mousebuttons).

4. Write a function onFirstResponderChanges(obj) to keep track of the currently selected GUI control.

5. Use mousebuttonsglobal
Reply With Quote