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
Show Thumbnail
Re: Show Thumbnail
Hello Rogiero,
This is currently not possible. I've added this feature on our wish list for a future release.
Kind regards,
Loïc
This is currently not possible. I've added this feature on our wish list for a future release.
Kind regards,
Loïc
Re: Show Thumbnail
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
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
Who is online
Users browsing this forum: No registered users and 1 guest