Show Thumbnail

Discussions about document viewing.
Post Reply
rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Show Thumbnail

Post by rpicilli » Sun Sep 01, 2013 4:37 pm

Dear all,

I need to know if the ThumbNail component have this feature.

I need to show thumbnail side by side in a horizontal ribbon. It means I don't want the component grow vertically but horizontally.

is that possible?

Rogerio

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

Re: Show Thumbnail

Post by Loïc » Wed Sep 04, 2013 11:59 am

Hello Rogiero,

This is currently not possible. I've added this feature on our wish list for a future release.

Kind regards,

Loïc

rpicilli
Posts: 50
Joined: Fri Nov 25, 2011 12:39 pm

Re: Show Thumbnail

Post by rpicilli » Wed Sep 04, 2013 12:38 pm

Thank you Loïc.

I could code this feature. What I have done is:

1 - Create a Windows Panel into a Windows Form
2 - Docked the Panel in the bottom of the Windows Form
3 - Put a GdThumbnail component inside the Windows Panel (same Panels heigh and 10 pixel less the the width.
4 - Each time I add a ThumbNail image, check the size of the Panel and the Size of Thumbnail
5 - If the size of ThumbNail is bigger resize it to acomodate the new image

This is the code (Just in case somebody need it)

Code

Private Sub Button1_Click(sender As System.Object, e As System.EventArgs) Handles Button1.Click
iThumbNailIncluded += 1
If Not MaxiDocThumb.Width > (MaxiDocThumb.ItemCount + 1) * (106) Then
MaxiDocThumb.Width += 106
pnlThumb.AutoScrollPosition = New System.Drawing.Point(MaxiDocThumb.Width, 0)
End If
Call subMostraThumbNails(0, "d:\sample1.tif")
pnlThumb.AutoScroll = True
End Sub

Private Sub subMostraThumbNails(sPathDaImagem As String)
iThumbNailIncluded += 1
MaxiDocThumb.AddItemFromFile(sPathDaImagem)
MaxiDocThumb.SetItemText(iThumbNailIncluded - 1, Path.GetFileNameWithoutExtension(sPathDaImagem))
End Sub

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests