ThumbListGadget lib [Update 18.08.08]

Developed or developing a new product in PureBasic? Tell the world about it.
Trond
Always Here
Always Here
Posts: 7446
Joined: Mon Sep 22, 2003 6:45 pm
Location: Norway

Post by Trond »

The unexplainable picture should be wider than it's tall, but it's scaled wrongly.
It shouldn't go out of its square.
The big preview shouldn't be mostly off screen.
The text shouldn't be cut off like that.
TLG_SetItemColor(hwndtlg, #Red) didn't do anything.
The text should use ClearType if that is selected in the control panel.
Image

The thumbnail is scaled correctly, but the preview is not.
Image

Wrong preview after quick mouse move:
Image
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

@Trond

Thanks, i will work for a fix now.
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

Trond wrote: TLG_SetItemColor(hwndtlg, #Red) didn't do anything.
.......
Fixed!
update comes later if i have fixed more bugs
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

Any progression on creating the next release?
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

kawasaki wrote:Any progression on creating the next release?
Yes, i think tomorrow i upload the next release with bugfix. If it is online i write a message at this post.
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

Update! see the first post
c4s
Addict
Addict
Posts: 1981
Joined: Thu Nov 01, 2007 5:37 pm
Location: Germany

Post by c4s »

It would be nice if you could add a compiled example to the zip-file too!

thx

p.S.
I think the font-bug comes because of other DPI-settings between you and
the user..

Something like this helped me and should help you too:

Code: Select all

#MyDPI = 96
Global UserDPI = GetDeviceCaps_(GetDC_(GetDesktopWindow_()), #LOGPIXELSX)


Macro CorrectFontSize(FontSize)
	ProcedureReturn (FontSize * UserDPI) / #MyDPI
EndMacro


LoadFont(1, "Arial", CorrectFontSize(12))
kawasaki
Enthusiast
Enthusiast
Posts: 182
Joined: Thu Oct 16, 2003 8:09 pm

Post by kawasaki »

Very nice :).. One suggestion though, which would make it a lot more user-friendly is to firstly add placeholder images for the thumbnails, like how when you open a webpage, the images that havent yet been loaded are replaced by a little icon, and then have a second thread that loads the images creates the thumbnails and replaces the image in the image gadgets... That way it would be a lot faster, and people wouldn't have to wait for all the images to load before utilising it.. because that could be a pain in the ass ;)
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

c4s wrote:It would be nice if you could add a compiled example to the zip-file too!

thx

p.S.
I think the font-bug comes because of other DPI-settings between you and
the user..

Something like this helped me and should help you too:

Code: Select all

#MyDPI = 96
Global UserDPI = GetDeviceCaps_(GetDC_(GetDesktopWindow_()), #LOGPIXELSX)

Macro CorrectFontSize(FontSize)
	ProcedureReturn (FontSize * UserDPI) / #MyDPI
EndMacro


LoadFont(1, "Arial", CorrectFontSize(12))

Thanks i will take a look and test your code inside the lib ;-) thanks for the example code!
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

kawasaki wrote:Very nice :).. One suggestion though, which would make it a lot more user-friendly is to firstly add placeholder images for the thumbnails, like how when you open a webpage, the images that havent yet been loaded are replaced by a little icon, and then have a second thread that loads the images creates the thumbnails and replaces the image in the image gadgets... That way it would be a lot faster, and people wouldn't have to wait for all the images to load before utilising it.. because that could be a pain in the ass ;)
Ok i will see what i can do :wink:
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Hello Nicolaus, anything new? This is very, very useful.
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

yes and no:-D
well i work on a update put momently i have not so many time (i must work at a big project for the business ) and the next problem is the difficult lib options in PB like Threadsafe, unicode and so.

I hope i can bring a update at the next weekend with more new functions and more.
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Good to hear, I look forward to it.
nicolaus
Enthusiast
Enthusiast
Posts: 456
Joined: Tue Aug 05, 2003 11:30 pm
Contact:

Post by nicolaus »

updated, see my first post
User avatar
Fangbeast
PureBasic Protozoa
PureBasic Protozoa
Posts: 4789
Joined: Fri Apr 25, 2003 3:08 pm
Location: Not Sydney!!! (Bad water, no goats)

Post by Fangbeast »

Any news?
Amateur Radio/VK3HAF, (D-STAR/DMR and more), Arduino, ESP32, Coding, Crochet
Post Reply