event OffsetChanged (Group as Group, Horizontal as Boolean, NewVal as Long)
Occurs when the scroll position is changed.

TypeDescription
Group as Group A Group object where the scroll position is changed.
Horizontal as Boolean A boolean expression that indicates whether the horizontal scroll bar has changed.
NewVal as Long A long value that indicates the new scroll bar value in pixels.
If the group has no scroll bars the OffsetChanged and OversizeChanged events are not fired. Use the ScrollBars property of the control to determine which scroll bars are visible within the control.

Syntax for OffsetChanged event, /NET version, on:

private void OffsetChanged(object sender,exontrol.EXPLORERTREELib.Group Group,bool Horizontal,int NewVal)
{
}

Private Sub OffsetChanged(ByVal sender As System.Object,ByVal Group As exontrol.EXPLORERTREELib.Group,ByVal Horizontal As Boolean,ByVal NewVal As Integer) Handles OffsetChanged
End Sub

Syntax for OffsetChanged event, /COM version, on:

private void OffsetChanged(object sender, AxEXPLORERTREELib._IExplorerTreeEvents_OffsetChangedEvent e)
{
}

void OnOffsetChanged(LPDISPATCH Group,BOOL Horizontal,long NewVal)
{
}

void __fastcall OffsetChanged(TObject *Sender,Explorertreelib_tlb::IGroup *Group,VARIANT_BOOL Horizontal,long NewVal)
{
}

procedure OffsetChanged(ASender: TObject; Group : IGroup;Horizontal : WordBool;NewVal : Integer);
begin
end;

procedure OffsetChanged(sender: System.Object; e: AxEXPLORERTREELib._IExplorerTreeEvents_OffsetChangedEvent);
begin
end;

begin event OffsetChanged(oleobject Group,boolean Horizontal,long NewVal)
end event OffsetChanged

Private Sub OffsetChanged(ByVal sender As System.Object, ByVal e As AxEXPLORERTREELib._IExplorerTreeEvents_OffsetChangedEvent) Handles OffsetChanged
End Sub

Private Sub OffsetChanged(ByVal Group As EXPLORERTREELibCtl.IGroup,ByVal Horizontal As Boolean,ByVal NewVal As Long)
End Sub

Private Sub OffsetChanged(ByVal Group As Object,ByVal Horizontal As Boolean,ByVal NewVal As Long)
End Sub

LPARAMETERS Group,Horizontal,NewVal

PROCEDURE OnOffsetChanged(oExplorerTree,Group,Horizontal,NewVal)
RETURN

Syntax for OffsetChanged event, /COM version (others), on:

<SCRIPT EVENT="OffsetChanged(Group,Horizontal,NewVal)" LANGUAGE="JScript">
</SCRIPT>

<SCRIPT LANGUAGE="VBScript">
Function OffsetChanged(Group,Horizontal,NewVal)
End Function
</SCRIPT>

Procedure OnComOffsetChanged Variant llGroup Boolean llHorizontal Integer llNewVal
	Forward Send OnComOffsetChanged llGroup llHorizontal llNewVal
End_Procedure

METHOD OCX_OffsetChanged(Group,Horizontal,NewVal) CLASS MainDialog
RETURN NIL

void onEvent_OffsetChanged(COM _Group,boolean _Horizontal,int _NewVal)
{
}

function OffsetChanged as v (Group as OLE::Exontrol.ExplorerTree.1::IGroup,Horizontal as L,NewVal as N)
end function

function nativeObject_OffsetChanged(Group,Horizontal,NewVal)
return

The following sample displays the position of the scroll bar that user changes:

Private Sub ExplorerTree1_OffsetChanged(ByVal Group As EXPLORERTREELibCtl.IGroup, ByVal Horizontal As Boolean, ByVal NewVal As Long)
    Debug.Print "The user changes the " & IIf(Horizontal, "horizontal", "vertical") & " scroll bar position. The new position is " & NewVal
End Sub