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
 How to keep thumbnails selection?
 New Topic  Reply to Topic
Author Previous Topic Topic Next Topic  

Andrew

4 Posts

Posted - Jun 11 2011 :  08:00:17  Show Profile  Reply
Hello,
Great components!

I have one question. How to keep thumbnails selected, when user click on some place of the thumbnail.
In multipage\customthumbs\ example when I click on image with "?" in bottom right corner of thumbnail, the dialog box will be shown and selection will be kept. But when I change code to do something else, without showing dialog box, the selection will lost.

I hope you will help me.

support

3 Posts

Posted - Jun 11 2011 :  09:28:21  Show Profile  Reply
Hello,
on multiselecting, a single click over a thumbnail means "select only this item", unselecting the others.
This is a common behavior of controls like "File explorer" and is not modifiable at the moment. The example works because the ShowMessage function.

Next versions will have a way to capture and handle clicks on specific regions of the thumbnail, allowing what you need.
Go to Top of Page

Andrew

4 Posts

Posted - Jun 11 2011 :  10:07:56  Show Profile  Reply
Thank you for your answer.

Ok, I have an another question.
TImageEnIO have a PreviewPrintImage function, that draws current image for print preview. But I want to make a preview for multiple images (contact sheet preview). Is there such function?
Go to Top of Page

support

3 Posts

Posted - Jun 11 2011 :  15:22:29  Show Profile  Reply
To preview images before printing in TImageEnMView use:

ImageEnMView.MIO.DoPrintPreviewDialog();

There are no other options (like PreviewPrintImage of TImageEnIO).
Of course you can still draw each image (each frame in TImageEnMView) in a large TImageEnView (or TIEBitmap) and print it.
Go to Top of Page

jwest

Brazil
67 Posts

Posted - Jun 11 2011 :  17:34:29  Show Profile  Reply
>>Of course you can still draw each image (each frame in TImageEnMView) >>in a large TImageEnView (or TIEBitmap) and print it.

Mr Nigel,

I am curious about a sample to do it?
It will bve possible post a snippet code?

Regards,

Luiz
Go to Top of Page

fab

1310 Posts

Posted - Jun 11 2011 :  23:41:32  Show Profile  Reply
Here is an example. It just loops all images in ImageEnMView1 and draws over ImageEnView1:

var
  i:integer;
  x, y:integer;
  bmp:TIEBitmap;
begin

  ImageEnView1.Proc.ImageResize(1000, 1000);
  ImageEnView1.Proc.Fill(clWhite);

  x := 0;
  y := 0;
  for i:=0 to ImageEnMView1.ImageCount-1 do
  begin
    bmp := ImageEnMView1.GetTIEBitmap(i);
    bmp.RenderToTIEBitmapEx(ImageEnView1.IEBitmap, x, y, ImageEnMView1.ThumbWidth, ImageEnMView1.ThumbHeight, 0, 0, bmp.Width, bmp.Height, 255, rfTriangle);
    ImageEnMView1.ReleaseBitmap(i);
    inc(x, ImageEnMView1.ThumbWidth + ImageEnMView1.HorizBorder);
    if x > ImageEnView1.IEBitmap.Width - ImageEnMView1.ThumbWidth then
    begin
      x := 0;
      inc(y, ImageEnMView1.ThumbHeight + ImageEnMView1.VertBorder);
      if y > ImageEnView1.IEBitmap.Height then
        break;
    end;
  end;

  ImageEnView1.Update;
end;
Go to Top of Page

jwest

Brazil
67 Posts

Posted - Jun 12 2011 :  10:22:18  Show Profile  Reply
Thanks, Mr Nigel
Go to Top of Page

fab

1310 Posts

Posted - May 12 2012 :  03:05:37  Show Profile  Reply
Boban, please open a new topic.
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
Jump To: