Disable Command Tooltip when Command Disabled  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.
Post Reply
zarkogajic
User
Posts: 1372
Joined: Thu Sep 05, 2019 12:35 pm

Disable Command Tooltip when Command Disabled

Post by zarkogajic »

Hi Support,

Is there a way to disable / not-show the commanditem's tooltip when the command item is disabled (UIX_CmdItemState_Disabled) ?

Like in:

image.png
image.png (13.16 KiB) Viewed 818 times


The cmd.open is disabled (UIX_CmdItemState_Disabled set in IUIX_CmdHandler.OnGetItemState) - and I would like the tooltip not to get displayed.


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

Re: Disable Command Tooltip when Command Disabled

Post by Sasha - Tracker Dev Team »

Hello zarkogajic,

I'm afraid that there is no such setting for the IUIX_CmdItem. What you can do is set the tooltip to an empty string when you disable the command and when you enable it, the tooltip ID is "<cmdID>.tip".

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

Re: Disable Command Tooltip when Command Disabled  SOLVED

Post by zarkogajic »

Ok, thanks. Will try.

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

Disable Command Tooltip when Command Disabled

Post by Sasha - Tracker Dev Team »

:)
Subscribe at:
https://www.youtube.com/channel/UC-TwAMNi1haxJ1FX3LvB4CQ
Post Reply