Results 1 to 40 of 260

Thread: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive features

Threaded View

  1. #11

    Thread Starter
    PowerPoster
    Join Date
    Jul 2010
    Location
    NYC
    Posts
    7,673

    Re: [VB6] ucShellBrowse: A modern replacement for Drive/FileList w/ extensive feature

    1) Probably best to do both I would think.

    2/3) This option already exists. FileDragDropMode has 4 options: Disabled, Drag Only, Drop Only, and DragDrop

    'FileSelectionChange' would imply that the selection change involves a file, but folders are displayed in the ListView as well. One event is for within the ListView, the other is for what location is displayed there. Would really like to avoid breaking backwards compatibility if at all possible; so would suggest that you can rename the event uptop then run a replace for RaiseEvent SelectionChanged,

    6) You must be doing something to lose the focus... or maybe what OS are you on? For me I can run code in ucShellBrowse_FileExecute without losing keyboard focus.
    In any case, I added a SetFocusOnFiles method that sets focus on the ListView hWnd, should that should take care of it (I'll also add one for the combobox).
    For a heads up, Tab-based navigation is not possible. It can be done if it's only just the ListView, but the IOleInPlaceActiveObject hack doesn't work when there's multiple subcontrols on the UC.

    7) I'm not sure it's appropriate to select a file the user hasn't picked. Recommend doing this manually instead.
    In your Form_Activate event (to cover the initial load), and in the ucShellBrowse_DirectoryChanged event, you can do the following:
    Code:
    Dim sF() As String
    sF = ucShellBrowse1.Files()
    If sF(0) <> "" Then ucShellBrowse1.SelectedFile = sF(0)
    ucShellBrowse1.SetFocusOnFiles
    Note: SetFocusOnFiles is one of the updates I'm working on now, it's not in the release yet; just showing you how you'll do it when the update comes.

    8) There is no themed 'Up' navbutton in the Theme API, at least that's documented. Will take a look. Maybe I could at least turn the other buttons into a tool bar; that would look slightly better.
    As far as alignment goes, I had went with the standard in Explorer and ComDlg and web browsers for the most part... can probably make an option out of it.
    Last edited by fafalone; Feb 18th, 2019 at 07:33 AM.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width