This is a work on my glist and myDir class (this class expanded here, but I use it in scrolliodo 4).
The good news
We bit Android...Yes we can scroll up down (not with super fast move, but with an accelerated move) bu pushing the list item up or down. If we select to hide scroll bar, when we push the list, the scroll bar be visible and we can operate it until we choose an item...and scroll bar hide.
Glist is updated to work with no data inside (as an option). So we take the data in myDir class and use that data without copy in the list. Because tehe list expose hdc, and the rect to draw...we can do a lot of things in code ind the form and not in the glist. This glist has inside merged in code a largebar control, so we can put a lot of items (no integer, but long for indexing)
We can display a folder, with or without files, and a folder and all folders under with or without files. Also we can sort files and folders (using the quicksort), by timestamp, by name or by type(for folders type is equal to name). We can select the multiselect option and we do a clik in the left area of an item, and as many as we like, but no on folders, that we define in a event routine out of glist.
I don't use dir, in myDir class but an advanced code to read in unicode.
Any suggestion is welcome
***********Glist4 is finished***************
I have in the last zip all the examples to master the glist4.
Glist4 is not only a listbox. It is a text viewer, a menu, a dropdown menu or list, a file selector, a control container, a floating control. Has header multiline with custom wrapping (break at spaces and slash, and can break big words). For menu we can have radio buttons, or just checked, or all of them, plus lines to separate items. We can enabled or disable menu items, and we can move with arrow keys, home/end, page up and down. In all situations scroll bar auto hide when we didn't need it. Except checked, radio buttons, enabled/disabled, we have multiselect listbox with a box in every item to select or not.
There are classes to subclassing the glist4 with just using WithEvents and the right object references.
So for a file selector:
The good news
We bit Android...Yes we can scroll up down (not with super fast move, but with an accelerated move) bu pushing the list item up or down. If we select to hide scroll bar, when we push the list, the scroll bar be visible and we can operate it until we choose an item...and scroll bar hide.
Glist is updated to work with no data inside (as an option). So we take the data in myDir class and use that data without copy in the list. Because tehe list expose hdc, and the rect to draw...we can do a lot of things in code ind the form and not in the glist. This glist has inside merged in code a largebar control, so we can put a lot of items (no integer, but long for indexing)
We can display a folder, with or without files, and a folder and all folders under with or without files. Also we can sort files and folders (using the quicksort), by timestamp, by name or by type(for folders type is equal to name). We can select the multiselect option and we do a clik in the left area of an item, and as many as we like, but no on folders, that we define in a event routine out of glist.
I don't use dir, in myDir class but an advanced code to read in unicode.
Any suggestion is welcome
***********Glist4 is finished***************
I have in the last zip all the examples to master the glist4.
Glist4 is not only a listbox. It is a text viewer, a menu, a dropdown menu or list, a file selector, a control container, a floating control. Has header multiline with custom wrapping (break at spaces and slash, and can break big words). For menu we can have radio buttons, or just checked, or all of them, plus lines to separate items. We can enabled or disable menu items, and we can move with arrow keys, home/end, page up and down. In all situations scroll bar auto hide when we didn't need it. Except checked, radio buttons, enabled/disabled, we have multiselect listbox with a box in every item to select or not.
There are classes to subclassing the glist4 with just using WithEvents and the right object references.
So for a file selector:
Code:
Public WithEvents mySelector As FileSelector
in form load event.............................................
Set mySelector = New FileSelector
With mySelector
Set .glistN = gList4
Set .Text1 = Text2
.FileTypesToDisplay = "TXT"
.SortType = 1 ' 0 timestamp - 1 name - 2 type
.FilePath = "C:\"
End With
.............................
Private Sub mySelector_DoubleClick(file As String)
myTextViewer.Title = file
myTextViewer.filename = file
End Sub