Type | Description | |||
DragInfo as DragInfo | A DragInfo object that carries information about the dragging operation. You can use UserData property of the DragInfo object to associate any-extra data to the current dragging operation. | |||
Cancel as Boolean | (By Reference) A Boolean expression that specifies whether the dragging operation should be canceled, or can continue. By default, the Cancel parameter is False, so you can change the Cancel parameter during the DragStart event to prevent sragging any layer on the control. |
The control fires the drag events in the following order:
You can use the Debug property of the DragInfo object to display debugging information during dragging.
The following screen show shows debugging information during dragging:
Syntax for DragStart event, /NET version, on:
private void DragStart(object sender,exontrol.EXGAUGELib.DragInfo DragInfo,ref bool Cancel) { } Private Sub DragStart(ByVal sender As System.Object,ByVal DragInfo As exontrol.EXGAUGELib.DragInfo,ByRef Cancel As Boolean) Handles DragStart End Sub |
private void DragStart(object sender, AxEXGAUGELib._IGaugeEvents_DragStartEvent e) { } void OnDragStart(LPDISPATCH DragInfo,BOOL FAR* Cancel) { } void __fastcall DragStart(TObject *Sender,Exgaugelib_tlb::IDragInfo *DragInfo,VARIANT_BOOL * Cancel) { } procedure DragStart(ASender: TObject; DragInfo : IDragInfo;var Cancel : WordBool); begin end; procedure DragStart(sender: System.Object; e: AxEXGAUGELib._IGaugeEvents_DragStartEvent); begin end; begin event DragStart(oleobject DragInfo,boolean Cancel) end event DragStart Private Sub DragStart(ByVal sender As System.Object, ByVal e As AxEXGAUGELib._IGaugeEvents_DragStartEvent) Handles DragStart End Sub Private Sub DragStart(ByVal DragInfo As EXGAUGELibCtl.IDragInfo,Cancel As Boolean) End Sub Private Sub DragStart(ByVal DragInfo As Object,Cancel As Boolean) End Sub LPARAMETERS DragInfo,Cancel PROCEDURE OnDragStart(oGauge,DragInfo,Cancel) RETURN |
<SCRIPT EVENT="DragStart(DragInfo,Cancel)" LANGUAGE="JScript"> </SCRIPT> <SCRIPT LANGUAGE="VBScript"> Function DragStart(DragInfo,Cancel) End Function </SCRIPT> Procedure OnComDragStart Variant llDragInfo Boolean llCancel Forward Send OnComDragStart llDragInfo llCancel End_Procedure METHOD OCX_DragStart(DragInfo,Cancel) CLASS MainDialog RETURN NIL void onEvent_DragStart(COM _DragInfo,COMVariant /*bool*/ _Cancel) { } function DragStart as v (DragInfo as OLE::Exontrol.Gauge.1::IDragInfo,Cancel as L) end function function nativeObject_DragStart(DragInfo,Cancel) return |