Recent

Author Topic: How show thumb in merged cell kgrid  (Read 2458 times)

WimVan

  • Jr. Member
  • **
  • Posts: 93
How show thumb in merged cell kgrid
« on: June 05, 2017, 12:35:02 pm »
All,

I found how to show a picture in a merged cell in Kgrid using drawcell-event.
See attachment 'shoot-test2.jpg'

But, can someone tell me how to do it, so I have the thumb is correct sizes just as I have in a HTML-page see attachment Shoot-test1.jpg

In my drawcell-event the result is a full sized thumb with the sizing of the actual merged cell

WimVan

  • Jr. Member
  • **
  • Posts: 93
Re: How show thumb in merged cell kgrid
« Reply #1 on: June 06, 2017, 09:01:43 am »
All,
Solution found.
In creation form, all thumbs are loaded into tpicture-array
In drawcell-event I
- Painted cell white
- calculated the center of the merged cell and showed the thumb not strechted as a bmp

 

TinyPortal © 2005-2018