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
 TimageEnMview selecting index
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Dany

67 Posts

Posted - Jul 11 2018 :  15:12:50  Show Profile  Reply
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!!!

w2m

USA
1990 Posts

Posted - Jul 11 2018 :  15:16:37  Show Profile  Reply
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
Go to Top of Page

Dany

67 Posts

Posted - Jul 12 2018 :  07:26:23  Show Profile  Reply
Thank you. I tested it an it works changing the selected image, but it does not fire the OnImageSelect, is that right?.
Go to Top of Page

xequte

39053 Posts

Posted - Jul 16 2018 :  21:26:12  Show Profile  Reply
Hi Dany

Events such as OnImageSelect are only fired by user actions.

Nigel
Xequte Software
www.imageen.com
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: