Jump to content

TUniCustomNativeImageList.Add(): Capability not implemented.


Tim

Recommended Posts

Hello,

 

My project loads bitmaps from the hard disk into an image list at run time, like this:

procedure TUniMainModule.UniGUIMainModuleCreate(Sender: TObject);
var
  Bitmap : TBitmap;
begin
  Bitmap := TBitmap.Create();
  Bitmap.LoadFromFile('d:\somefolder\somefilename.bmp');
  UniImageList1.Add(Bitmap, nil);
  Bitmap.Free();
end;

When UniImageList1 was a TUniImageList, this worked fine. But now that i've switched over to TUniNativeImageList, the second-last line causes an exception:

Project Project1.exe raised exception class Exception with message 'TUniCustomNativeImageList.Add(): Capability not implemented.'.

Is there any solution/workaround for this, or do i have to switch back to TUniImageList?
 

Many thanks,

Tim

 

Link to comment
Share on other sites

  • 5 years later...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...