Page 1 of 1

Load tooltip for ButtonBar buttons from user commands

Posted: 2023-06-22, 16:51 UTC
by LonerD
Example.

Command

Code: Select all

[em_command]
cmd=Runcommand.exe
menu=My Description
And Button

Code: Select all

TOTALCMD#BAR#DATA
em_command

%COMMANDER_PATH%\TOTALCMD64.EXE,3



10693
Suggestion - show text "My Description" (from em-command) when hovering mouse over the button.
Similar behavior already implemented (text from main menu). But when buttons are unique and only present in buttonbars (like all buttons in my buttonbars) quick button bar editing is uncomfortable.

Re: Load tooltip for ButtonBar buttons from user commands

Posted: 2023-06-22, 17:33 UTC
by Sir_SiLvA
I dunno if that is possible cause atm when you have an em_command in your mnu-file and put that em_command
on the button bar it gets the tooltip text from the mnu-file-text for the em_command.

Re: Load tooltip for ButtonBar buttons from user commands

Posted: 2023-06-22, 17:49 UTC
by LonerD
Sir_SiLvA wrote: 2023-06-22, 17:33 UTCI dunno if that is possible
It can be simple option or checkbox like "Read command description from language mnu file or read from usercmd.ini"

Re: Load tooltip for ButtonBar buttons from user commands

Posted: 2023-06-22, 19:17 UTC
by petermad
FYI If you pick the em_command by clicking the magnifying glass button in the "Change Button bar" dialog (or the "Change single button" dialog) - and then select the command from the "Choose Command" dialog - then the text from the menu= line is automatically inserted in the Button's "Tooltip" field.

But if you just write the name of the em_command in the "Command" field - then the "Tooltip" field is left blank.

It would be convenient if the text from menu= would be used with a blank "Tooltip" field, when the em_command is NOT used in the Main Menu where it would otherwise get its Tooltip text from.