Jump to content
Developer Wiki and Function Reference Links ×

ViewPaneLabelAPI - icon resolution error.


Piotr Rachtan

Recommended Posts

I'm trying to display label with icon on the Viewpane, based on the below code, I set the path to `16x14-32bpp@72dpi` png file + the@2x file is also accessible (32x28-32bpp@72dpi).

 

            // add a single label to this row
			// The icon.png resolution should be 16 x 14. The developers should provide the large resolution icon 32 x 28 
			// Otherwise, the default icon will be used.
			// The text should be from the resource (vwr).
			labels.push_back( {"Localized Viewpane Label 1", "vwrFolderWithoutExtension/Images/Icon1.png" } );

 

The above code works as expected for VW2023, but stops working for VW2024, a pop-up appears:

 

image.png.98691cd3aefefa1786c5017dceac0e49.png

 

 

What I'm doing wrong?

(png files attached)

icons.zip

Edited by Piotr Rachtan
Link to comment

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

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