How to display profile attribute image images on DG items?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
2024-02-05
01:51 AM
- last edited on
2024-09-16
02:58 PM
by
Doreena Deng
Could I know a method how to display a picture like profile attribute preview of the Profile Manager on DG dialog in AC26 AddOn?
Specifically, it is assumed that the profile_vectorImageItems field of API_AttributeDefExt will be displayed as UserItem of DG.
I found able to use NewDisplay to draw an image on DG's UserItem at the Do_UCTest function in AddOn sample DG_Test.cpp. So I tried to use APIAny_ConvertMimePictureID function to directly convert the profile_vectorImageItems field of API_AttributeDefExt to API_MimePicture information. But this function returns APIERR_BADPARS, and I was unable to set the preview image of a profile attribute to NewDisplay.
I looked for information such as API and DG documentation. But I wasn't sure if another conversion was needed before setting the profile_vectorImageItems field to APIAny_ConvertMimePictureID, or if there was a completely separate method.