viking icon indicating copy to clipboard operation
viking copied to clipboard

Emit message when greyed out icons are pressed

Open jidanni opened this issue 1 year ago • 3 comments

Pressing greyed out icons should may a message 'adding waypoints is disabled for this layer' etc., instead of just doing nothing. Else the user, who has never seen what the non-greyed out version of a particular icon looks like, thinks they can still press it.

jidanni avatar Jul 24 '24 22:07 jidanni

I think this is by design of the underlying GUI GTK toolkit behaviour (and AFAIK all GUI toolkits behave this way included Qt, WinForms, WxWidgets), so the top level program doesn't get notified about such events.

Can you identify an existing program - preferably a 'popular/mainstream' one - that offers such feedback?

rnorris avatar Aug 03 '24 09:08 rnorris

All I know is that emacs would at least beep in such situations. But of course emacs isn't inside a browser.

jidanni avatar Aug 17 '24 04:08 jidanni

Ah, I always turn off beeps!

I noticed the other day using VMWare Workstation (on Windows) - that it does respond to clicks on (at least some) inactive buttons on the toolbar - with some kind of dialog warning message. But none of the inactive menu entries did.

However, I still don't think that is possible with the GTK framework. But I've not researched that definitively.

Alternatively, what might be easier to achieve, is changing the tooltip message as appropriate.

rnorris avatar Aug 24 '24 13:08 rnorris