TMSFNCListEditor not showing image immediately after assigning image

After creating a FNCListEditor item and assigning an image form a BitmapContainer the image is only displayed once you click on the control or resizing of the browser takes place. I have tried calling the Paint procedure after the item is added, but no luck.

Code.zip (54.9 KB)

This is because the image is cached and being asynchronously loaded. You can try the following approach

procedure TForm1.DoImageCacheReady(Sender: TObject);
begin
  TMSFNCListEditor1.Invalidate;
end;

procedure TForm1.WebFormCreate(Sender: TObject);
begin
  TMSFNCListEditor1.Items[0].LeftImageName := 'Item1';
end;

procedure TForm1.WebFormShow(Sender: TObject);
begin
  Application.OnImageCacheReady := DoImageCacheReady;
end;