T O P I C R E V I E W |
Dany |
Posted - Jul 11 2018 : 15:12:50 Hello;
Very simple question (but I can't find it on the help and in the source). How do I select which is the current selected image on a TImageEnMview?. Something like "ImgEnMW.ItemIndex := 3" or "ImgEnMW.Select(3)" or "ImgEnMW.Selected := 3" or something like that?
Thank you!!! |
3 L A T E S T R E P L I E S (Newest First) |
xequte |
Posted - Jul 16 2018 : 21:26:12 Hi Dany
Events such as OnImageSelect are only fired by user actions.
Nigel Xequte Software www.imageen.com
|
Dany |
Posted - Jul 12 2018 : 07:26:23 Thank you. I tested it an it works changing the selected image, but it does not fire the OnImageSelect, is that right?. |
w2m |
Posted - Jul 11 2018 : 15:16:37 ImageEnMView1.SelectedImage := 3;
TImageEnMView.SelectedImage
Declaration
property SelectedImage: integer;
Description
Get or set the currently selected image (which will be drawn with a colored border.
You can get the bitmap of the selected image using IEBitmap or Bitmap.
Example // Paint frame number on each thumbnail ImageEnMView1.LockUpdate(); for I := 0 to ImageEnMView1.ImageCount - 1 do begin ImageEnMView1.SelectedImage := I; ImageEnMView1.Proc.TextOut(Align_text_near_top, Align_text_near_left, '#' + IntToStr( I + 1 ), 'Arial', 32, clRed, [fsBold]); end; ImageEnMView1.UnlockUpdate();
Bill Miller Adirondack Software & Graphics Email: w2m@hughes.net EBook: http://www.imageen.com/ebook/ Custom Commercial ImageEn Development |