Recent

Author Topic: [SOLVED] Problem to show a margin around a TImage on a TScrollBox  (Read 2126 times)

wp

  • Hero Member
  • *****
  • Posts: 12355
Re: Problem to show a margin around a TImage on a TScrollBox
« Reply #15 on: August 04, 2024, 08:01:37 pm »
Yes, that's the default behaviour. I think you can rely on an object being either constructed or nil.

Hartmut

  • Hero Member
  • *****
  • Posts: 803
Re: Problem to show a margin around a TImage on a TScrollBox
« Reply #16 on: August 05, 2024, 11:00:30 am »
OK, again something learned. I set now this Topic to "Solved". Thanks a lot to all who helped me, especially to wp for your continuous help.

Hartmut

  • Hero Member
  • *****
  • Posts: 803
Re: [SOLVED] Problem to show a margin around a TImage on a TScrollBox
« Reply #17 on: August 07, 2024, 04:03:53 pm »
@wp:
After I attached 1 line to your demo
Code: Pascal  [Select][+][-]
  1. FBuffer.PixelFormat:=pf32bit;
I got a strange bug. To find out, if that bug is reproduceable, I opened a new Topic: https://forum.lazarus.freepascal.org/index.php/topic,68146.0.html
It would be great, if you could test on your Linux system and report in this other Topic. Thanks a lot.

 

TinyPortal © 2005-2018