backanim

  JR-FileViewer
Properties   Methods   Events
   

jrsoftlogo

            OnSelectionChange

           

  Description:

Fired when a new ListItem is selected.

           

  ico_syntax Syntax:

Sub FileViewer1.OnSelectionChange(ByVal Item As _JRFileListItem, ByVal Selecting As Boolean, ByVal Cancel As Boolean)

 

  ico_einstellungen
Return Values:

JRFileListItem

a object with up to 17 informations about the selected file. If more then one item is selcted, then the JRFileListItem will be nothing.

Selecting

Return the selected State of the Item

Cancel

Set Cancel to true to select the item before.

           

  ico_einstellungen   Example:

       

    Private Sub filev1_OnSelectionChange(ByVal item As JRFileListItem, Selecting As Boolean, Cancel As Boolean)
    'JRFileListItem is nothing if multi items are selected
    If Not item Is Nothing Then
      Label3(7).Caption = item.path & item.FileName
      'Cancel = True
    Else
      'at multi selections the selecting and cancel are not work. To get the selected     items enum all the list items
      Label3(7).Caption = Str$(FileV1.SelectedCount)
    End If