ImageEn for Delphi and C++ Builder ImageEn for Delphi and C++ Builder

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
Forum membership is Free!  Click Join to sign-up
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 MoveSelectedFilesToFolder usage problem
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Waheed

Kuwait
36 Posts

Posted - Oct 12 2019 :  02:55:13  Show Profile  Reply
Hello,
This method is working great
ImageEnFolderMView1.MoveSelectedFilesToFolder

, but how can I keep it from scrolling to the top after moving files?

object ImageEnFolderMView1: TImageEnFolderMView
  Left = 440
  Top = 80
  Width = 781
  Height = 694
  Background = clWindow
  Ctl3D = False
  ParentCtl3D = False
  StoreType = ietFastThumb
  ThumbWidth = 200
  ThumbHeight = 200
  HorizBorder = 8
  VertBorder = 8
  TextMargin = 4
  ThumbnailOptionsEx = [ietxShowIconForUnknownFormat, ietxShowIconWhileLoading, ietxEnableInternalIcons, ietxStretchSmallImages, ietxFillWithImgBackground]
  OnSelectionChanging = FolderViewSelectionChanging
  Checkboxes = iecbAlways
  GridWidth = -1
  SelectionWidth = 5
  SelectionColor = clRed
  ImageCacheSize = 200
  Style = iemsFlat
  AutoAdjustStyle = True
  ThumbnailsBackground = clHighlight
  ThumbnailsBackgroundSelected = 16575194
  ThumbnailsBackgroundHover = 16774117
  EnableMultiSelect = True
  MultiSelectionOptions = [iemoRegion]
  ThumbnailsBorderWidth = 1
  DefaultTopText = iedtImageDimAndSize
  DefaultInfoText = iedtNone
  DefaultBottomText = iedtFilename
  Anchors = [akLeft, akTop, akRight, akBottom]
  ThumbnailResampleFilter = rfFastLinear
  ThumbnailDisplayFilter = rfNone
  SelectedFontColor = clNone
  ReadOnly = False
  MouseWheelParams.Action = iemwVScroll
  MouseWheelParamsAlt.Action = iemwZoom
  TabOrder = 16
  SortOrder = iesbFilenameWithoutPath
  ShowFolders = False
end




-----------------
3 Monitors
Windows 10
Delphi 6,2007 and 10.2
ImageEn v.8.7

Waheed

Kuwait
36 Posts

Posted - Oct 12 2019 :  11:22:32  Show Profile  Reply
Solved it.
Used:
y := ImageEnFolderMView1.ViewY;
// some files change
ImageEnFolderMView1.ViewY := y;


Thanks to this topic:
https://www.imageen.com/ieforum/topic.asp?TOPIC_ID=2912

-----------------
3 Monitors
Windows 10
Delphi 6,2007 and 10.2
ImageEn v.8.7
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: