Hi there,
I have an issue with Thumbviwer component. I habe a thumbcontrol where i load images form a directory. The layout is set to LsGrid and Autosizeoption = true. Thumbs heights and widths are set to 100 by default.
I added a trackbar with max and min set to 1 and 5 respectively. The idea is to allow the user to change the thumbnails size on runtime.
To do it. i use this code:
Thumbcontrol1.ThumbWidth := 100*Trackbar1.position;
Thumbcontrol1.ThumbWidth := 100*Trackbar1.position;
It works partially. The image frame changes properly, adjusting the imageframe and its caption, but the image itself does not change at all, keeping the original size.
I tried adding different commands to the procedure:
Thumbcontrol1.Repaint;
Thumbcontrol1.Update;
Thumbcontrol1.Refresh;
But nothings results on the correct resizing of the picture, as it works when changing the thumbcontrol size. In fact, i also tried to change the control size, to see if it works as it should be, by this code:
Thumbcontrol1.Width := Thumbcontrol1.Width +1;
Thumbcontrol1.Width := Thumbcontrol1.Width - 1;
Again without results.
Do you have idea how could i solve this issue?
Thanks!