Download Now

    Reference Codebot.Windows.Explorer.pas

    Part of the Codebot Windows Shell package

    The Codebot.Windows.Explorer unit gives you controls that host the parts of Windows Explorer itself. They show the same folders, icons, columns, context menus, and previews as Windows Explorer, and they work with any shell folder, including virtual folders such as This PC, Control Panel, and the Recycle Bin.

    Control Description
    TExplorerView Shows the items of a folder using the explorer browser, with the view modes, columns, sorting, grouping, filtering, and search of Windows Explorer. It keeps a history for GoBack and GoForward, and can copy, paste, rename, and delete the selected items.
    TExplorerTree Shows the folder tree of the navigation pane, optionally with checkboxes.
    TExplorerEdit Shows the path of a folder as an edit with autocomplete, as a breadcrumb with a menu of subfolders for each folder, or as an edit with a drop down tree.
    TExplorerPreview Shows a file using the preview handlers of Windows. For files without one, it shows their thumbnail and details such as their size, version, dimensions, or duration.
    TExplorerBinding Keeps views, trees, edits, and previews in sync. When one of them moves to a folder the others follow, and previews show the item selected in a view.

    You can give any of these controls a file system path, a shell parsing name such as ::{20D04FE0-3AEA-1069-A2D8-08002B30309D} for This PC, or a known folder such as shell:Downloads. The empty path is the desktop. A path is kept as you give it, so a view set to shell:Downloads reports shell:Downloads while it shows that folder. If you need item ID lists, ShellPathToIDList and ShellIDListToPath convert paths to them and back.

    The windows Windows creates inside these controls pass their mouse and keyboard input on to the control, so the usual events such as OnMouseDown, OnKeyDown, OnContextPopup, and OnDragOver work just as you would expect. At design time those windows let the mouse pass through, so you can select the controls in the form designer.

    The unit is for Windows only.

    Items 325 items

    NameKindLine
    DefaultTreeOptionsconstant60
    ShellIDListToPathfunction801
    ShellPathToIDListfunction798
    TExplorerBindingclass783
    Createconstructor789
    DoChangeprocedure786
    Previewprocedure791
    TExplorerCheckEventprocedural75
    TExplorerControlclass84
    CreateWndprocedure88
    Destroydestructor101
    DestroyWndprocedure89
    HookChildWindowsprocedure94
    InputMessagefunction91
    ShowContextPopupfunction97
    InContextMenuproperty99
    TExplorerEditclass513
    BeginEditprocedure594
    CloseUpprocedure598
    Createconstructor590
    CreateWndprocedure579
    Destroydestructor591
    DropDownprocedure596
    FontChangedprocedure580
    GoUpprocedure600
    KeyDownprocedure581
    MouseDownprocedure582
    MouseLeaveprocedure583
    MouseMoveprocedure584
    MouseUpprocedure585
    Paintprocedure586
    Resizeprocedure587
    Alignproperty626
    Anchorsproperty627
    AutoCompleteproperty607
    BorderSpacingproperty628
    BorderStyleproperty629
    Colorproperty630
    Constraintsproperty631
    DragCursorproperty632
    DropDownHeightproperty609
    DroppedDownproperty602
    Editproperty604
    Enabledproperty633
    Fontproperty634
    Hintproperty635
    Modeproperty611
    OnChangeproperty615
    OnChangeBoundsproperty644
    OnClickproperty645
    OnCloseUpproperty617
    OnContextPopupproperty646
    OnDblClickproperty647
    OnDragDropproperty648
    OnDragOverproperty649
    OnDropDownproperty619
    OnEnterproperty650
    OnExitproperty651
    OnKeyDownproperty652
    OnKeyPressproperty653
    OnKeyUpproperty654
    OnMouseDownproperty655
    OnMouseMoveproperty656
    OnMouseUpproperty657
    OnMouseWheelproperty658
    OnMouseWheelDownproperty659
    OnMouseWheelUpproperty660
    OnNavigateproperty622
    OnNavigationFailedproperty625
    OnResizeproperty661
    OnShowHintproperty662
    OnUTF8KeyPressproperty663
    ParentColorproperty636
    ParentFontproperty637
    ParentShowHintproperty638
    Pathproperty613
    PopupMenuproperty639
    ShowHintproperty640
    TabOrderproperty641
    TabStopproperty642
    Visibleproperty643
    TExplorerEditModeenum57
    emEditenum value57
    emBreadcrumbenum value57
    emDropDownenum value57
    TExplorerFolderEventprocedural71
    TExplorerPathEventprocedural66
    TExplorerPreviewclass678
    Clearprocedure728
    Createconstructor725
    CreateWndprocedure719
    Destroydestructor726
    DestroyWndprocedure720
    Paintprocedure721
    Refreshprocedure730
    Resizeprocedure722
    Alignproperty746
    Anchorsproperty747
    BorderSpacingproperty748
    BorderStyleproperty749
    Colorproperty750
    Constraintsproperty751
    DragCursorproperty752
    EmptyTextproperty737
    Enabledproperty753
    FileNameproperty740
    Fontproperty754
    Handlerproperty732
    Hintproperty755
    OnChangeBoundsproperty764
    OnClickproperty765
    OnContextPopupproperty766
    OnDblClickproperty767
    OnDragDropproperty768
    OnDragOverproperty769
    OnEnterproperty770
    OnExitproperty771
    OnMouseDownproperty772
    OnMouseMoveproperty773
    OnMouseUpproperty774
    OnPreviewproperty742
    OnPreviewFailedproperty745
    OnResizeproperty775
    OnShowHintproperty776
    ParentColorproperty756
    ParentFontproperty757
    ParentShowHintproperty758
    PopupMenuproperty759
    Previewingproperty734
    ShowHintproperty760
    TabOrderproperty761
    TabStopproperty762
    Visibleproperty763
    TExplorerTreeclass359
    CollapseAllprocedure431
    Createconstructor428
    CreateWndprocedure423
    Destroydestructor429
    DestroyWndprocedure424
    EnsureVisibleprocedure433
    GetCheckedItemsprocedure435
    ItemAtPosfunction438
    Refreshprocedure440
    Resizeprocedure425
    Alignproperty470
    Anchorsproperty471
    BorderSpacingproperty472
    BorderStyleproperty473
    Checkedproperty442
    Constraintsproperty474
    Controlproperty444
    DragCursorproperty475
    Enabledproperty476
    Expandedproperty446
    Hintproperty477
    OnChangeproperty461
    OnChangeBoundsproperty484
    OnCheckproperty463
    OnClickproperty485
    OnContextPopupproperty486
    OnDblClickproperty487
    OnDragDropproperty488
    OnDragOverproperty489
    OnEnterproperty490
    OnExitproperty491
    OnExpandedproperty465
    OnExpandingproperty467
    OnIncludeItemproperty469
    OnKeyDownproperty492
    OnKeyPressproperty493
    OnKeyUpproperty494
    OnMouseDownproperty495
    OnMouseMoveproperty496
    OnMouseUpproperty497
    OnMouseWheelproperty498
    OnMouseWheelDownproperty499
    OnMouseWheelUpproperty500
    OnResizeproperty501
    OnShowHintproperty502
    OnUTF8KeyPressproperty503
    Optionsproperty451
    ParentShowHintproperty478
    Pathproperty448
    PopupMenuproperty479
    Rootproperty454
    Rootsproperty457
    ShowFilesproperty459
    ShowHintproperty480
    TabOrderproperty481
    TabStopproperty482
    Visibleproperty483
    TExplorerTreeOptionenum48
    toHasLinesenum value48
    toSingleClickExpandenum value48
    toSpringExpandenum value48
    toFullRowSelectenum value49
    toShowSelectionAlwaysenum value49
    toHorizontalScrollenum value49
    toAutoHorizontalScrollenum value50
    toFadeExpandosenum value50
    toEvenHeightenum value50
    toNoInfoTipsenum value50
    toNoEditLabelsenum value51
    toNoDragDropenum value51
    toFavoritesModeenum value51
    toCheckBoxesenum value51
    TExplorerTreeOptionsset53
    TExplorerViewclass108
    ClearHistoryprocedure215
    ClearSelectionprocedure242
    Copyprocedure226
    Createconstructor206
    CreateWndprocedure201
    Cutprocedure228
    Deleteprocedure232
    Destroydestructor207
    DestroyWndprocedure202
    ExecuteVerbprocedure222
    GetItemsprocedure245
    GoBackprocedure209
    GoForwardprocedure211
    GoToHistoryprocedure213
    GoUpprocedure217
    NewFolderprocedure236
    Pasteprocedure230
    Propertiesprocedure234
    Refreshprocedure219
    Renameprocedure224
    Resizeprocedure203
    Searchprocedure251
    Selectprocedure238
    SelectAllprocedure240
    Alignproperty320
    Anchorsproperty321
    BorderSpacingproperty322
    BorderStyleproperty323
    Browserproperty253
    CanGoBackproperty255
    CanGoForwardproperty257
    Columnsproperty280
    Constraintsproperty324
    DragCursorproperty325
    EmptyTextproperty282
    Enabledproperty326
    Filterproperty285
    FocusedItemproperty269
    GroupByproperty288
    Hintproperty327
    Historyproperty259
    HistoryCountproperty261
    HistoryIndexproperty263
    IconSizeproperty290
    ItemCountproperty271
    OnChangeBoundsproperty334
    OnClickproperty335
    OnContextMenuCloseproperty304
    OnContextMenuOpenproperty306
    OnContextPopupproperty336
    OnDblClickproperty337
    OnDefaultActionproperty308
    OnDragDropproperty338
    OnDragOverproperty339
    OnEnterproperty340
    OnExitproperty341
    OnIncludeItemproperty311
    OnKeyDownproperty342
    OnKeyPressproperty343
    OnKeyUpproperty344
    OnMouseDownproperty345
    OnMouseMoveproperty346
    OnMouseUpproperty347
    OnMouseWheelproperty348
    OnMouseWheelDownproperty349
    OnMouseWheelUpproperty350
    OnNavigateproperty313
    OnNavigatedproperty315
    OnNavigationFailedproperty317
    OnResizeproperty351
    OnSelectionChangedproperty319
    OnShowHintproperty352
    OnUTF8KeyPressproperty353
    Optionsproperty292
    ParentShowHintproperty328
    Pathproperty294
    PopupMenuproperty329
    Searchingproperty265
    SearchTextproperty267
    SelectedCountproperty273
    ShellViewproperty275
    ShowHiddenproperty296
    ShowHintproperty330
    SortColumnproperty299
    SortDescendingproperty301
    TabOrderproperty331
    TabStopproperty332
    ViewModeproperty302
    Visibleproperty333
    TExplorerViewModeenum33
    evIconenum value33
    evSmallIconenum value33
    evListenum value33
    evDetailsenum value33
    evThumbnailenum value33
    evTileenum value34
    evThumbstripenum value34
    TExplorerViewOptionenum38
    voAutoArrangeenum value38
    voSnapToGridenum value38
    voSingleSelectenum value38
    voNoSubfoldersenum value39
    voShowSelectionAlwaysenum value39
    voSingleClickActivateenum value39
    voHideFileNamesenum value40
    voCheckBoxesenum value40
    voAutoCheckSelectenum value40
    voTriCheckSelectenum value40
    voFullRowSelectenum value41
    voNoGroupingenum value41
    voNoFiltersenum value41
    voNoColumnHeaderenum value41
    voNoHeaderInAllViewsenum value42
    voExtendedTilesenum value42
    TExplorerViewOptionsset44
    WM_EXPLORERCHECKconstant26
    WM_EXPLORERCLOSEUPconstant28