ImageEn, unit iexFolderMView

TImageEnFolderMView

TImageEnFolderMView


Description


The TImageEnFolderMView component is a descendent of TImageEnMView, but is designed specifically for displaying the content of file folders.




While much of TImageEnFolderMView's functionality can be replicated in TImageEnMView using FillFromDirectory, there are a number of features that are only available in this control:
- Dragging and dropping files from Windows
- Cut, copy and paste files from Windows Explorer
- Automatic refreshing when folder contents change
- Display of the standard folder popup menu
- File functions to move, copy, rename and delete files
- In-built file navigation, file shortcuts and other functions

To use TImageEnFolderMView, specify a Folder and the file types that you wish to display. For more control you can specify your own file mask, exclusion mask and sort order.

For rapid UI development TImageEnFolderMView provides a set of actions, plus you can use all actions of TImageEnMView.


Overview





Demos


  Demos\Multi\FolderMView\FolderMView.dpr
  Demos\Actions\Actions_Folder\FolderMViewActions.dpr



Example


// Set up
with IEFolderMView1 do
begin
  BorderStyle := bsNone; // Normally don't require a 3D border

  ThumbWidth := 140; // Choose a good size for your thumbnails
  ThumbHeight := 150;

  // Default is rfFastLinear for speed, but rfLanczos3 will give much better quality
  ThumbnailDisplayFilter := rfLanczos3;
end;

// Now display the images of a folder in the grid
IEFolderMView1.Folder := 'C:\MyImages\';
IEFolderMView1.FileTypes := iefAllImages; // Images only
IEFolderMView1.SortOrder := iesbImageSize; // Sort by image dimensions


Methods and Properties


Folder Display
  AutoRefresh
  DefaultFolder
  EnableSpecialFolders
  ExclusionMask
  FileLimit
  FilenameFilter
  FileTypes
  FileTypesMask
  Folder
  IncludeSubFolders
  PopupMenuUseSystem
  PromptForFolder
  RefreshFileList
  RefreshSorting
  SetFolderEx
  SetSortOrderEx
  SortAscending
  SortCaseSensitive
  SortOrder
  ShowDevices
  ShowFolders
  ShowHiddenFiles


File Operations
  AutoDragFiles
  AutoDropFiles
  CreateNewFolder
  ExecuteFile
  CopyFilesToCurrentFolder
  CopySelectedFilesToClipboard
  CopySelectedFilesToFolder
  CutSelectedFilesToClipboard
  DeleteSelectedFilesFromFolder
  FileOperationOptions
  FolderInteract
  MoveFilesToCurrentFolder
  MoveSelectedFilesToFolder
  OpenFolder
  OpenParentFolder
  CanOpenParentFolder
  PasteFilesFromClipboard
  CanPasteFilesFromClipboard
  PopupSystemMenu
  RenameFile


Display
  Animation
  AnnotationsVisible
  AutoAdjustStyle
  Background
  BackgroundStyle
  BiDiMode
  CenterFrame
  DisplayImageAt
  FlatScrollBars
  GradientEndColor
  GridWidth (Column count)
  LockPaint
  LockPaintCount
  LockUpdate
  LockUpdateCount
  MaximumViewX
  MaximumViewY
  SetChessboardStyle
  SetModernStyling
  SetStyleEx
  SetViewXY
  Style
  UnlockPaint
  UnlockUpdate
  ViewX
  ViewY
  Wallpaper
  WallpaperStyle


Editing
  AppendFile
  AppendImage
  AppendSplit
  Clear
  CreateMorphingSequence
  DeleteImage
  ImageCount
  InsertFile
  InsertImageEx
  InsertImage
  InsertTransitionFrames
  InsertTransitionFramesEx
  MoveImage
  RemoveBlankPages
  RemoveFile


Image Access
  Bitmap
  CopyToIEBitmap
  GetBitmap
  GetTIEBitmap
  IEBitmap
  PrepareSpaceFor
  ReleaseBitmap
  SetImage
  SetImageEx
  SetImageRect
  UpdateImage


Image Information
  FilenameToIndex
  ImageBackground
  ImageBitCount
  ImageDelayTime
  ImageCol
  ImageCreateDate
  ImageEditDate
  ImageFileName
  ImageFileSize
  ImageFileType
  ImageHeight
  ImageID
  ImageOriginalHeight
  ImageOriginalWidth
  ImageRow
  ImageTag
  ImageUserPointer
  ImageWidth
  ImageX
  ImageY


Image Text
  BottomTextFont
  DefaultBottomText
  DefaultInfoText
  DefaultTopText
  ImageBottomText
  ImageInfoText
  ImageTopText
  InfoTextFont
  ParentFont
  SelectedFontColor
  SetAllText
  ShowText
  TextBackgroundColor
  TextBackgroundStyle
  TextMargin
  TextTruncSide
  TopTextFont


Thumbnail Appearance
  EnableAlphaChannel
  FillThumbnail (Highlight Selection)
  IconSize
  SetThumbnailSize
  ShowThumbnailHint
  SoftShadow
  ThumbHeight
  ThumbnailClipping
  ThumbnailDisplayFilter
  ThumbnailFrameRect
  ThumbnailFrameSelected
  ThumbnailFrame
  ThumbnailResampleFilter
  ThumbnailsBackground
  ThumbnailsBackgroundHover
  ThumbnailsBackgroundSelected
  ThumbnailsBackgroundStyle
  ThumbnailsBorderColor
  ThumbnailsBorderWidth
  ThumbnailsInternalBorderColor
  ThumbnailsInternalBorder
  ThumbnailOptionsEx
  ThumbsRounded
  ThumbSizeInfo
  ThumbWidth
  Zoom


Thumbnail Spacing
  BottomGap
  HorizBorder
  LeftGap
  RightGap
  UpperGap
  VertBorder


Input/Output
  ClearImageCache
  EnableAdjustOrientation (Auto-Rotate)
  EnableImageCaching
  EnableLoadEXIFThumbnails
  EnableLoadExplorerThumbnails
  EnsureImageLoaded
  GetImageToFile
  GetImageToStream
  ImageCacheSize
  ImageCacheUseDisk
  IOOptionsEx
  JobsRunning
  JobsWaiting
  LoadFromFileOnDemand
  LoadSnapshot
  LookAhead
  MaintainInvisibleImages
  MIO
  PortableDevices
  ReloadImage
  SaveSnapshot
  Seek
  SetImageFromFile
  SetImageFromStream
  ThreadPoolSize


Selections
  BeginSelectImages
  CenterSelected
  CheckThumbBoundsOnSelect
  DeleteSelectedImages
  Deselect
  EnableMultiSelect
  EndSelectImages
  IsSelected
  MoveSelectedImagesTo
  MultiSelectedImages
  MultiSelectedImagesAutoSort
  MultiSelectedimagesCount
  MultiSelectedImagesList
  MultiSelecting
  MultiSelectionOptions
  SelectAll
  SelectedFilename
  SelectedFilenames
  SelectedImage
  SelectedImageAlwaysVisible
  SelectionColor
  SelectionWidth
  SelectionWidthNoFocus
  SelectSeek
  UnselectImage
  VisibleSelection


Checkboxes
  Checkboxes
  Checked
  CheckedCount
  CheckboxPos
  SetCheckboxParams
  CheckAll
  UncheckAll


User Interaction
  Gestures
  GetImageVisibility
  HScrollBarParams
  ImageAtGridPos
  ImageAtPos
  InsertingPoint
  IsVisible
  KeyInteract
  MouseInteract
  MouseWheelParams (Default)
  MouseWheelParamsAlt (Ctrl Key)
  ScrollBars
  ScrollBarsAlwaysVisible
  VScrollBarParams


Single Frame View
  DisplayMode (Enable single frame view)
  Playing
  PlayLoop
  TransitionDuration
  TransitionEffect
  TransitionRunning
  VisibleFrame


Other
  CalcGridHeight
  CalcGridWidth
  IEBeginDrag
  IEEndDrag
  ImageEnVersion
  Proc
  StoreType
  Update


Internal
  FillFromDirectory
  FillFromList
  Sort



Events


Folder Events
  OnAutoRefresh
  OnFolderChanging
  OnFolderChanged


User Interaction Events
  OnCheckboxClick
  OnDropFiles
  OnImageDeselect
  OnImageSelect
  OnImageEnGesture
  OnMouseEnter
  OnMouseLeave
  OnSelectionChanging


Loading Events
  OnAllDisplayed
  OnImageIDRequestEx
  OnImageIDRequest
  OnImageLoaded
  OnIOProgress
  OnWrongImage


Paint Events
  OnAnimationText
  OnBeforeImageDrawEx
  OnBeforeImageDraw
  OnDrawProgress
  OnGetText
  OnGetTextEx
  OnImageDraw
  OnImageDraw2
  OnImageOut


Other Events
  OnAcquireBitmap
  OnAfterEvent
  OnCreateImage
  OnCreateParams
  OnCustomSortCompare
  OnDestroyImage
  OnFinishWork
  OnGetHint
  OnImageAdd
  OnImageAdded
  OnImageAtPos
  OnPlayFrame
  OnPrintPage
  OnProgress
  OnShowDialog
  OnUndoRedo
  OnViewChange


 Unique to TImageEnFolderMView