Hello,
the default tool is the "hand". I want to change it to "text select". I know there is an option to set the default tool and even an option that saves the last used tool. I've looked into the full demo and other topics in the forum, but i didnt find anything. The only thing i found is how to enable another option, but i dont know what flags / ICABS to use for the default tool preference. (Topic: https://www.pdf-xchange.com/forum3 ... ol#p116669)
Thanks in advance!
Cheers
Changing default tool SOLVED
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.
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.
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Changing default tool
Hello DeKo,
Use the CAB Node Explorer utility for easier settings search.
https://github.com/tracker-software/CAB ... r/releases
As for your case, use the Tools.Default setting.
Cheers,
Alex
Use the CAB Node Explorer utility for easier settings search.
https://github.com/tracker-software/CAB ... r/releases
As for your case, use the Tools.Default setting.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Changing default tool
Hello,
i hope someone can help me. I wasn't sure if i should start a new topic or reply here, since it kinda has to do something with the default tool.
So, before we show the pdf control, i set the defaul tool to text select by this code:
This is working perfectly fine. I commited it to our repository and then my colleague tested it. When he compiled everything he got an error, that 2125 ist out of range. I didnt find anything in the search about that. Am i doing something wrong or is this a (known) bug?
Greetings,
Dennis
i hope someone can help me. I wasn't sure if i should start a new topic or reply here, since it kinda has to do something with the default tool.
So, before we show the pdf control, i set the defaul tool to text select by this code:
Code: Select all
pdfCtl.Inst.DefaultTool = pdfCtl.Inst.GetTool(2125);
Greetings,
Dennis
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Changing default tool
Hello DeKo,
I will quote myself from another post:
Alex
I will quote myself from another post:
Cheers,Please check the FullDemo application again for the IDs part - there is an IDS enumeration that has all of the IDs in the numeric representation. The private void InitIDS() method initializes the public int[] nIDS array that has all of the numeric representations. If you don't want to do that then you will need to do pdfCtl.Inst.Str2ID(sid); every time that you will need the numeric representation of the event. There is no such resource with static IDs - the IDs are being added for each release and the numeric values can vary - thus the ID system is being used from the very start.
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Re: Changing default tool
Hello Alex,
thanks for the fast reply. I checked the FullDemo and saw
I wasn't sure if i edited the solution or if it was used like that. Sorry for the trouble. My next approach was initializing the ids, but i wasn't sure where to look, thanks for the hint.
I will try to find a solution. If anything comes up i will write again.
Thanks for the help as always! I wish happy holidays.
Greetings,
Dennis
thanks for the fast reply. I checked the FullDemo and saw
Code: Select all
pdfCtl.Doc.ActivateTool(2125);
I will try to find a solution. If anything comes up i will write again.
Thanks for the help as always! I wish happy holidays.
Greetings,
Dennis
-
- User
- Posts: 5522
- Joined: Fri Nov 21, 2014 8:27 am
- Contact:
Re: Changing default tool SOLVED
Hello Dennis,
To put it short - if you want to get ID of anything - you should get it from the string ID each time at the program start. Then everything should work correctly.
Cheers,
Alex
To put it short - if you want to get ID of anything - you should get it from the string ID each time at the program start. Then everything should work correctly.
Cheers,
Alex
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ