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

 

ImageEn Forum
Profile    Join    Active Topics    Forum FAQ    Search this forumSearch
 All Forums
 ImageEn Library for Delphi, C++ and .Net
 ImageEn and IEvolution Support Forum
 TimageEnMview selecting index

Note: You must be registered in order to post a reply.
To register, click here. Registration is FREE!

View 
UserName:
Password:
Format  Bold Italicized Underline  Align Left Centered Align Right  Horizontal Rule  Insert Hyperlink   Browse for an image to attach to your post Browse for a zip to attach to your post Insert Code  Insert Quote Insert List
   
Message 

 

Emoji
Smile [:)] Big Smile [:D] Cool [8D] Blush [:I]
Tongue [:P] Evil [):] Wink [;)] Black Eye [B)]
Frown [:(] Shocked [:0] Angry [:(!] Sleepy [|)]
Kisses [:X] Approve [^] Disapprove [V] Question [?]

 
Check here to subscribe to this topic.
   

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