images from TTMSFNCBitmapContainer are not show in TTMSFNCDataGrid

I put a TTMSFNCDataGrid (1.8.0.1) and TTMSFNCBitmapContainer (1.0.0.0) in new VCL form and I added 2 images named “inj“ and “edit” in the container (one svg and one png)

I added a Tbutton that runs the following code:

v_table.clear; 

v_table.ColumnCount:=5; 

v_table.RowCount:=5; 

v_table.BitmapContainer:=imgcont;
v_table.Cells[2,3]:='<b>hello</b> <IMG src="edit" width="24" height="24"/> man';
v_table.AddBitmap(2,4,'inj');

When I run the program I get:

What am I doing wrong?

We have tested here and couldn’t reproduce

Please send a test case so we can investigate.

Project1.zip (77.2 KB)

I ran the project, but noticed there is no bitmapcontainer at designtime. There is only a reference imgcont: TTMSFNCBitmapContainer at form level, this means that when starting the application the bitmapcontainer is nil

1 Like

I reload again the project and I noticed the same. Probably a bug in Delphi 13.

Apologies and thank you

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.