LEADTOOLS Support
Imaging
Imaging SDK Questions
How can make use of Thumbnail browser in Powerbuilder
This topic and its replies were posted before the current version of LEADTOOLS was released and may no longer be applicable.
#1
Posted
:
Tuesday, December 1, 2009 2:50:52 PM(UTC)
Groups: Registered
Posts: 2
Hi,
Kindly help.
Im doing a thumbnail browser from a directory using powerbuilder. However the pictures is not loading, I put a message on ThumbnailEvent and sees that it was triggered, I even manage to get thumbnail info width, height and bits. But the image is not showing..
please help. this is my code upon opening the window that contains the Thumbnail browser
code is in open event of window - w_vrsmain
w_vrsmain.ole_thumb.Object.EnableMethodErrors = False
w_vrsmain.ole_thumb.Object.StopOnError = True
w_vrsmain.ole_thumb.Object.Filter ( "*.jpg")
w_vrsmain.ole_thumb.Object.ThumbnailWidth = 150
w_vrsmain.ole_thumb.Object.ThumbnailHeight = 150
w_vrsmain.ole_thumb.Object.ThumbnailBitsPerPixel = 24
w_vrsmain.ole_thumb.Object.LoadStamp = TRUE
w_vrsmain.ole_thumb.Object.Resample = TRUE
w_vrsmain.ole_thumb.Object.IncludeSubdirectories = False
w_vrsmain.ole_thumb.Object.ExpandMultiPage = False
w_vrsmain.ole_thumb.Object.BrowseDir( "C:\")
please help.
thank you,
mela
#2
Posted
:
Wednesday, December 2, 2009 4:55:54 AM(UTC)
Groups: Registered, Tech Support
Posts: 1,326
Was thanked: 1 time(s) in 1 post(s)
Mela,
If you are using the Thumbnail Browser control of LEADTOOLS 14.5 or earlier, this control does not display anything. It only browses the returns the images.
You must assign the returned bitmap to a different control, such as a LEAD Main OCX or an Image List control to display them.
You can do that inside the ThumbnailEvent when it is triggered with nStatusCode = 0 (which means the function was successful).
Thanks,
Maen Badwan
LEADTOOLS Technical Support
#3
Posted
:
Wednesday, December 2, 2009 4:49:48 PM(UTC)
Groups: Registered
Posts: 2
Hi Maen,
Thanks a lot, you have help me with the information you gave. Now im able to make use of thumbnail images in powerbuilder..
regards,
mela
LEADTOOLS Support
Imaging
Imaging SDK Questions
How can make use of Thumbnail browser in Powerbuilder
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.