advr.hlp (Topic list)
Important Notice
The pages on this site contain documentation for very old MS-DOS software, purely for historical purposes. If you're looking for up-to-date documentation, particularly for programming, you should not rely on the information found here, as it will be woefully out of date.
DragOver Event Details
  ◄Summary►  ◄Details►  ◄Example►                ◄Contents►  ◄Index►  ◄Back►
──────────────────────────────────────────────────────────────────────────────
 SUB Form_DragOver (Source AS CONTROL, X AS SINGLE, Y AS SINGLE,
                    State AS INTEGER)
 
 SUB ctlname_DragOver ([Index AS INTEGER,]Source AS CONTROL, X AS SINGLE,
                        Y AS SINGLE, State AS INTEGER)
 
 Usage Notes
   ■ Use a DragOver event procedure to determine what happens after dragging
     is initiated and before a control drops onto a target. For example, you
     might verify a valid target range by either:
     • Highlighting the target (set the BackColor or ForeColor property in
       code)
     • Displaying a special drag pointer (set the MousePointer property in
       code)
 
   ■ Use the State argument to determine actions at key transition points.
     For example, you might highlight a possible target on State 0 (Enter)
     and restore the object's previous appearance on State 1 (Leave).
 
   ■ When an object receives a DragOver event with State = 0 (Enter):
     • If the Source control is dropped on a valid target, a DragDrop event
       is generated.
     • If the Source control is not dropped on a valid target, another
       DragOver event is generated with State = 1 (Leave).
 
   ■ Use the DragMode property and the DRAG Method, or the DragDrop event
     using the Source argument, to specify the way dragging is initiated.
     See: ◄DRAG Method►  ◄DragDrop Event►  ◄DragMode Property►