Tokay Posted October 24, 2024 Posted October 24, 2024 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. Quote
Tokay Posted October 24, 2024 Posted October 24, 2024 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. Quote
Sherzod Posted October 25, 2024 Author Posted October 25, 2024 12 hours ago, Tokay said: Does it possible to use such or other animated icons in the column of dbgrid? Hello, Do you mean the column title? Quote
Tokay Posted October 25, 2024 Posted October 25, 2024 1 hour ago, Sherzod said: Hello, Do you mean the column title? No, inner data (first icon should be animated): Quote
Sherzod Posted October 25, 2024 Author Posted October 25, 2024 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? Quote
Tokay Posted October 25, 2024 Posted October 25, 2024 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 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.