Recent

Author Topic: TVirtualStringTree does not show background image  (Read 2702 times)

EganSolo

  • Sr. Member
  • ****
  • Posts: 290
TVirtualStringTree does not show background image
« on: March 23, 2018, 06:07:32 am »
Hi guys,

Laz 1.8.2 on Win 10 with version 5.5.3.1 of VirtualTreeView and 0.6.1 of lclextensions.

Hopefully, this one is simple: I've loaded a picture into the background property of a VirtualStringTree. I've set toShowBackground to true in the paint options but the image does not show.

The image has the following properties:
Type: jpeg
Size : 10.4 kb
Dimensions: 265 x 685
DPI : 92

The virtual tree string dimensions are 262 x 621.

I hope I'm missing something really trivial.

Any pointer would help

Thanks!


balazsszekely

  • Guest
Re: TVirtualStringTree does not show background image
« Reply #1 on: March 23, 2018, 06:36:42 am »
Hi EganSolo,

I'm afraid only BMPs are supported, this is true for more recent version of VTV. I assume you only wish a simplistic background like a gradient or something similar, otherwise the node text won't be visible. The trick is to create a bmp with small width(10x700, 21 kB -tiny) and VTV will replicate it as in the attached image.

EganSolo

  • Sr. Member
  • ****
  • Posts: 290
Re: TVirtualStringTree does not show background image
« Reply #2 on: March 23, 2018, 06:45:50 am »
Hi GetMem,

Thanks for the quick reply! The thing that threw me off is that the TPicture dialog box has no qualm chowing the picture I loaded.

Alright then, bmp it is. Thanks a bunch!

 

TinyPortal © 2005-2018