Get icon from Resources.dat  SOLVED

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.
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Get icon from Resources.dat

Post by zarkogajic »

Hi support,

I'd like to get my hand on this icon (GoToR action command):

image.png

I've tried visually searching for it in Resources.dat (as far as I can see icons are actually PDF pages) - but was not able to find. Is it there and if it is how to get it (to specify the same for my custom command).

p.s.
I know how to hijack the icon from a command registered in CmdManager.Cmds, but the one above is dynamically added and removed for that dialog.

You do not have the required permissions to view the files attached to this post.
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Get icon from Resources.dat

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

The id of that icon is ico.action.gotoR

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: Get icon from Resources.dat

Post by zarkogajic »

Alex,

Thanks.

I'm unable to find how to use that :(

How to go from that string to IUIX_Icon ?

Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Get icon from Resources.dat

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

You can see the methods that use the needed interface on the SDKHelp wiki:
image.png
Cheers,
Alex
You do not have the required permissions to view the files attached to this post.
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: Get icon from Resources.dat

Post by zarkogajic »

Hi Alex,

Thanks. Works like a charm :)

Btw, how/where can I get all icon id's?

-žarko
Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Get icon from Resources.dat  SOLVED

Post by Sasha - Tracker Dev Team »

Hello žarko,

You should go to the Resources.dat file and find the Theme.xml file there. It holds all of the icon ids.

Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: Get icon from Resources.dat

Post by zarkogajic »

Hi Alex,

Ok, thanks.

Sasha - Tracker Dev Team
User
Posts: 5522
Joined: Fri Nov 21, 2014 8:27 am

Re: Get icon from Resources.dat

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
prasantha
User
Posts: 43
Joined: Fri Jun 24, 2022 8:15 am

Re: Get icon from Resources.dat

Post by prasantha »

Can I know how can I Open the resources.dat file?
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Re: Get icon from Resources.dat

Post by zarkogajic »

Hi,

Open as zip file.


-žarko
prasantha
User
Posts: 43
Joined: Fri Jun 24, 2022 8:15 am

Re: Get icon from Resources.dat

Post by prasantha »

Thank you very much žarko
User avatar
Dimitar - Tracker Supp
Site Admin
Posts: 1797
Joined: Mon Jan 15, 2018 9:01 am

Get icon from Resources.dat

Post by Dimitar - Tracker Supp »

:)