Auto-resize thumbnails

Discussions about document viewing.
Post Reply
User avatar
AgfaDev
Posts: 33
Joined: Thu Sep 12, 2013 7:48 am

Auto-resize thumbnails

Post by AgfaDev » Thu Sep 19, 2013 12:47 pm

I wonder if there is a way to let the thumbnails be automatically resized depending on the size of the control.

I know how to set width and height of the thumbnails, but it would be nice that depending on the size of the control the thumbnails are scaled accordingly.

I'm replacing an old component which this does actually.
The form consists of 2 parts, a small strip at the left showing the thumbnails and at the right the viewer.
In between there is a splitter. So the user can drag the splitter left/right to enlarge the thumbnail control.
The thumbs need to be rescaled to get the max possible width.

Any suggestion?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: Auto-resize thumbnails

Post by Loïc » Thu Sep 19, 2013 2:57 pm

Hello,

We do not provide such feature but it should be easy to implement it by yourself. For example in the Resize event that modifies the ThumbnailEx size you can call the SetItemsSize() method with parameter proportionals to control size.

Kind regards,

Loïc

User avatar
AgfaDev
Posts: 33
Joined: Thu Sep 12, 2013 7:48 am

Re: Auto-resize thumbnails

Post by AgfaDev » Fri Sep 20, 2013 8:45 am

Thanks for your response.

Would this be a nice enhancement request to be implemented in a future version?
A automatic resizing option (based on the width/height of the control) would spare us the coding needed to get this and my guess is, when done in the component itself it will be more "efficient".

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest