Hello,
At design time I can drop a TTMSFNCBitmapContainer on the form, connect it with a TMSFNCToolBarButton and set the bitmapname in Bitmaps[0].
However at runtime I struggle with the same thing.
I started with this:
with MyButton do
begin
BitmapVisible := True;
Width := 100;
Height := 100;
Text := '';
BitmapContainer := MainForm.BitmapContainer;
Then this (it doesn't work):
Bitmaps.Add;
Bitmaps[0].BitmapName := '3Arrows_ArrowYellowRight.svg';
Alternatively I tried this:
Bitmaps.AddBitmapName('3Arrows_ArrowYellowRight.svg',1);
and also this:
With Bitmaps.Insert(0) Do
Begin
BitmapName := '3Arrows_ArrowYellowRight.svg';
End;
At each 3 approaches there wasn't the bitmap on the button.
What is the correct approach? Thank you very much!