Wings 3D Development Forum
Tooltips in command menu - Printable Version

+- Wings 3D Development Forum (https://www.wings3d.com/forum)
+-- Forum: Wings 3D (https://www.wings3d.com/forum/forumdisplay.php?fid=1)
+--- Forum: Programming (https://www.wings3d.com/forum/forumdisplay.php?fid=7)
+--- Thread: Tooltips in command menu (/showthread.php?tid=2197)



Tooltips in command menu - brunokindt - 10-22-2016

Hey,

I'm trying to get rid of the tooltips on the command menu. Did try by adding

wxToolTip:enable(false)

and by removing

[wxWindowConfusedetToolTip(Win, wxToolTip:new(TipMsg)) || Win <- [Panel,T1,T2|BM]],
in
https://github.com/dgud/wings/blob/master/src/wings_menu.erl#L493

but not much luck. Could somebody point me in the correct direction?

thanks...


RE: Tooltips in command menu - micheus - 10-22-2016

Tool tips are used as information for the mouse options as well as a way to show the hotkey assigned to each one.
What's the reason to try remove them?


RE: Tooltips in command menu - oort - 10-22-2016

Micheus,
I do not know for sure what his reason is, but maybe he is a more advanced user who does not want to see them???

I think other programs offer the option of not displaying them as well. If they cannot be removed maybe add an option to control how long it takes before they are displayed???

Thanks,
oort


RE: Tooltips in command menu - brunokindt - 10-22-2016

Thanks for the reply.
The problem with the tooltip is that it obscures the other menu entries (view screenshot in attachment). So if I select a few edes, RMB click and want to locate "circularise" in the menu it's possible the tooltip is already over the menu entry, making it harder to locate.

The tooltip text is also already present at the bottom of the wings3d window.

I'm using Fedora24 so maybe the problem is not present in windows.


RE: Tooltips in command menu - oort - 10-22-2016

brunokindt,
In Windows the tooltip does not cover the menu like it does for you. As a work around, you can move the mouse away from the text in the popup menu and the tooltip goes away. At least that works in Windows...

We will have to see if there is a better solution from Micheus or dgud.

p.s. The tooltips showing by the cursor is a new feature (that many wanted) added since the switch to wxwidgets.

oort


RE: Tooltips in command menu - dgud - 10-22-2016

This line (and another similar line) is was sets them, so out-comment them should solve that.

[wxWindowConfusedetToolTip(Win, wxToolTip:new(TipMsg)) || Win <- [Panel,T1,T2|BM]],


RE: Tooltips in command menu - brunokindt - 10-22-2016

Removing the two wxWindowConfusedetToolTip lines was the first thing I tried but wings would not build anymore. Had another look at the build error.

compile: warnings being treated as errors
wings_menu.erl:454: variable 'TipMsg' is unused
Makefile:168: recipe for target '../ebin/wings_menu.beam' failed

Renaming TipMsg to _TipMsg resolved the issue.