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
 about MultiSelecting

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
kk9750 Posted - Jul 24 2012 : 04:59:32
Hello,Great ImageEn!
Please help me.

I am read the documents.

TImageEnMView.MultiSelecting

property MultiSelecting:boolean;

Set MultiSelecting to True to simulate a CTRL key press. It allows user to select multiple images with mouse or arrow keys without press CTRL key.

--------------------------------
I am using ImageEn V3.12,but its MultiSelecting property is not work well.

I reference the documnet,wrote following code,
set:
EnableMultiSelect:=true;

then,on the TImagenEnMView component's OnImageSelect event,wrote following code
ImageEnMView1.MultiSelecting:=true;
but,it can't work.




1   L A T E S T    R E P L I E S    (Newest First)
w2m Posted - Jul 24 2012 : 08:47:37

All you have to do to enable multi selctions is to call ImageEnMView1.EnableMultiSelect := True; in OnFormCreate.

procedure TFormMain.FormCreate(Sender: TObject);
begin
  ImageEnMView1.EnableMultiSelect := True;
end;


After you add images to ImageEnMView1 you should be able to select more than one image at a time using the CTRL and SHIFT keys and left mouse button click.

Then after selecting images;
procedure TForm1.Button1Click(Sender: TObject);
var
  i: integer;
  iSelectedIndex: integer;
  iSelectedString: string;
begin
  iSelectedString := 'Process the images you have selected' + #10#13 + #10#13 + 'Selected Indexes: '+ #10#13;
  for i := 0 to ImageEnMView1.MultiSelectedImagesCount - 1 do
  begin
    iSelectedIndex := ImageEnMView1.MultiSelectedImages[i];
    iSelectedString := iSelectedString + IntToStr(iSelectedIndex) + #10#13;
  end;
  // Now process the images you have selected
  // In this case we are just displaying a message that shows the indexes of selected images.
  ShowMessage(iSelectedString);
end;



William Miller