====== DRAGSTART event ====== ==== Description ==== This event is fired at a drag source control in response to data being dragged from it. ==== Syntax ==== //bforward// = **DRAGSTART**(//ctrlentID//, //ctrlclassID//, MouseDownX, MouseDownY, CtrlKey, ShiftKey, AltKey, Mo//useButton//) ==== Parameters ==== DBLCLK accepts arguments for the following parameters. ^Parameter^Description^ |//ctrlentID//|Has the format //WindowName.ControlName//, where //WindowName// is the identifier of the window that contains the affected control, and //ControlName// is the identifier of the control. Notice that a period separates the two values.| |//ctrlclassID//|The type of control that recognizes the event.| |MouseDownX|x coordinate where the drag started (relative to the client area)| |MouseDownY|y coordinate where the drag started (relative to the client area)| |//ctrlkey//|True (1), if the ctrl key is pressed. False (0), if the ctrl key is not pressed.| |//shiftkey//|True (1), if the shift key is pressed. False (0), if the shift key is not pressed.| |//mousebutton//|A "0" indicates that the left or center mouse button was pressed. A "1" indicates that the right button was pressed. A "2" indicates that the middle mouse button was pressed.| ==== Returns ==== True or false. If false, the program execution returns to the calling procedure. If true, the event processing goes to the next level. ==== Remarks ==== To abort the drag operation simply remove all drag data formats from the drop source by using the REMOVEDRAGDATA or CLEARDRAGDATA messages This event is fired synchronously. If it fails to fire for whatever reason the drag operation will be aborted. ==== See Also ==== [[dragover_event|DRAGOVER Event]], [[removedragdata_message|REMOVEDRAGDATA message]], [[cleardragdata_message|CLEARDRAGDATA message]], [[getdragdata_message|GETDRAGDATA message]], [[setdragdata_message|SETDRAGDATA message]]