Jump to content

Recommended Posts

  • 2 years later...
Posted

Does it possible to use such or other animated icons in the column of dbgrid? I've tried but it doesn't works (no any image shown). But with button works as expectd.

Posted

I've found a reason. Images are obtained from the UniNativeImageList using the following code:

procedure TUniForm20.UniDBGrid1FieldImageURL(const Column: TUniDBGridColumn; const AField: TField;
 var OutImageURL: string);
begin
 if SameText(AField.FieldName, 'verify_state') then
  OutImageURL := UniNativeImageList1.GetImagePngUrl(AField.AsInteger);
end;
 

And obviously it could not work normally. But maybe exists another way? Need to show one of four image in each grid row. Three images are normal PNGs, one is animated.

Posted
13 minutes ago, Tokay said:

No, inner data (first icon should be animated):

So your UniNativeImageList contains only fontawesome icons, and you use this ImageList only for this purpose?

Posted
17 minutes ago, Sherzod said:

So your UniNativeImageList contains only fontawesome icons, and you use this ImageList only for this purpose?

UniNativeImageList contains 4 icons: 3 PNG and one font awesome. UniNativeImageList used only for this purpose

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...