Recent

Author Topic: Updating from laz 1.8.4 to laz 2.0.2, what can be here wrong?  (Read 329 times)

Soner

  • Full Member
  • ***
  • Posts: 150
I am updating my system to lazarus 2.0.2.
On lazarus 2.0.2 my tabset-components button images are drawn very small and destroyed.
What can it be any ideas? Look at the screenshot.
What is changed in lazarus 2.0.2 so much that drawing goes wrong?
From 0.8 to 1.8.4 I only copied the tabset-component to new lazarus and everything was right.
( I don't tried lazarus 2.0.0)
The images loaded from resource file in to  TImagelist and drawn with TImageList.Draw functions.

wp

  • Hero Member
  • *****
  • Posts: 6015
Re: Updating from laz 1.8.4 to laz 2.0.2, what can be here wrong?
« Reply #1 on: April 21, 2019, 11:53:47 pm »
Laz 2.0+ contains a new TImageList which supports multiple resolutions: http://wiki.lazarus.freepascal.org/TImageList#Multiple-resolution_TImageList_in_Lazarus_1.9_and_newer. There are two demos in the examples folder of Lazarus. Search the forum for "imagelist" and my nickname, I had given some further explanations here and there (I am not the author of the new image list, though).
Lazarus trunk / fpc 3.0.4 / all 32-bit on Win-10

Soner

  • Full Member
  • ***
  • Posts: 150
Re: Updating from laz 1.8.4 to laz 2.0.2, what can be here wrong?
« Reply #2 on: April 22, 2019, 03:36:46 pm »
Thanks for the hint. TImageList.AddSliced solved the problem.