Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow to Disable Element Tooltips #6832

Open
mathieu-fournier opened this issue Jun 12, 2024 · 3 comments
Open

Allow to Disable Element Tooltips #6832

mathieu-fournier opened this issue Jun 12, 2024 · 3 comments
Assignees

Comments

@mathieu-fournier
Copy link

A informational tooltip appears automatically when the mouse is still for a short period of time.
We need a way to disable these.
They appear on top of everything and should just not appear at all.
image

We can costumize them with tooltip provider.
But even if we costumize them to be empty, an empty tooltip box still appears.

I'm not 100% sure, but I think this line is where the tooltip is 'activated'.

The solution should be someting that ressembles :
IModelApp.viewManager.disableTooltips = true.
IModelApp.uiAdmin.updateFeatureFlags({ showTooltips: false });

Thanks.

@GerardasB
Copy link
Contributor

NotificationManager already has a getter isToolTipSupported that is used by AccuSnap APIs that you could override.
Alternatively, you could override _showToolTip of your notification manager (I assume you are using AppNotificationManager).

@GerardasB GerardasB self-assigned this Jun 18, 2024
@mathieu-fournier
Copy link
Author

These are readonly and private properties, I cant change them.
image

@mathieu-fournier
Copy link
Author

We can hide the tooltip by doing a wrapper over the base class like this, but I dont really like that we are overwriting the frameworks implementation.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants