Probably ... (click to expand) ...
preamble = "Open GhostMenu Tools palette at mouse location."
shortcuts = Sketchup.get_shortcuts
if gm_shortcut = shortcuts.find {|sk| sk =~ /GhostMenu/ }
status = "#{preamble} (#{gm_shortcut.split("\t").first})"
@local_shortcut = true
else
status = "#{preamble} [Global CTRL+Space Shortcut in use]"
@local_shortcut = false
end
@popup= UI::Command.new("Show GhostMenu") {
#
popup()
#
}.add_validation_proc {
@local_shortcut ? MF_ENABLED : MF_DISABLED | MF_GRAYED
}
@popup.tooltip= "Show GhostMenu"
@popup.status_bar_text= status
I just can’t remember if since the command updates with SU2013 if we can still change the statusbar text dynamically or whether it is one time set since. (It is either tooltip or status text we cannot later change.)
And … BTW, I filed this API Feature Request request today …
… with a link to this forum topic for reference.