To fix the blured Icon

PDF-XChange Editor SDK for Developers

Moderators: TrackerSupp-Daniel, Tracker Support, Paul - Tracker Supp, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Forum rules
DO NOT post your license/serial key, or your activation code - these forums, and all posts within, are public and we will be forced to immediately deactivate your license.

When experiencing some errors, use the IAUX_Inst::FormatHRESULT method to see their description and include it in your post along with the error code.
prasantha
User
Posts: 43
Joined: Fri Jun 24, 2022 8:15 am

To fix the blured Icon

Post by prasantha »

I have added the zoom controlls to my application command bar.
I used the following code snipped to add them.

var Control = ribbonGroup.Add(XTPControlType.xtpControlButton, Constants.MENUID_ZOOM_ZOOM_OUT, "");
Control.Style = XTPButtonStyle.xtpButtonAutomatic;
Control.IconId = Constants.ICONID_ZOOM_ZOOM_OUT;

I have added couple of tools like this.

At the run time the icons seems to be blured and too small. eventhoguh I set the height and the width of the icon it shows blured icons.
image.png
But if check it on the PDF exchange editor , it shows nicely as below,
image(1)(1).png
Can someone tell me whats missing here?
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: To fix the blured Icon

Post by Vasyl-Tracker Dev Team »

Please try 24x24 size for icons. Editor uses that size.
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.
prasantha
User
Posts: 43
Joined: Fri Jun 24, 2022 8:15 am

Re: To fix the blured Icon

Post by prasantha »

Thank you for your response
I tested it after changing the icon size. below shows how it looks
image.png
I tested after increased the control width to 30 as well. then it looks like below, the icons are too close
image.png

Please let me know whats wrong and why i cant achive the nice view like pdf excahnge editor here?
You do not have the required permissions to view the files attached to this post.
User avatar
Vasyl-Tracker Dev Team
Site Admin
Posts: 2353
Joined: Thu Jun 30, 2005 4:11 pm
Location: Canada

Re: To fix the blured Icon

Post by Vasyl-Tracker Dev Team »

I guess this problem is related to:
viewtopic.php?t=39126

So there is the same question - how do you use Editor's icons in that 3rdparty Ribbon UI?
Does this Ribbon-implementation provide the draw-your-own-icon-callback and do you override it?
Vasyl Yaremyn
Tracker Software Products
Project Developer

Please archive any files posted to a ZIP, 7z or RAR file or they will be removed and not posted.