Assign FMX Tbitmap to FNCBitmapSelector?

Hi, is it possible to programmatically populate an FNCBitmapSelector with FMX bitmaps? In the old TMSFMXbitmapSelector, I could do e.g.

TMSFMXBitmapSelector1.Items.Add;
index:=TMSFMXBitmapSelector1.Items.count-1;
TMSFMXBitmapSelector1.items[index].Bitmap:=myBitmap;

... but if I try something similar with FNCBitmapselector, the last line gives
"Incompatible types: 'TTMSFNCBitmap' and 'TBitmap'"

Is there perhaps a way to convert an FMX Tbitmap to a TTMSFNCBitmap, or can I draw an FMX Tbitmap on the FNCBitmapselector using an event?

(Sorry if this is a stupid question, I'm just beginning with FNC - perhaps it is not possible to mix FMX with FNC in this way?)

Thanks!

Use Bitmap.Assign(myBitmap) instead.

Works perfectly, problem solved, thanks!

1 Like

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