Suggestions/Corrections on Button Bar Tooltips
Posted: 2006-11-26, 14:36 UTC
1. Update help section ( http://img294.imageshack.us/img294/9421/helpfc3.png ) on the way tooltips are retrieved
e.g.
When a button doesn't have a tooltip defined apply one in the following order:
a. User-defined tooltip,
b. Command description from wcmd_lng.inc (English: from totalcmd.inc),
c. Same command from main menu,
d. cm_xyz without the prefix cm_
2. Automatically pass description in button bar configuration tooltip space when
a present association is found or (less professional) simply indicate the user that
an automated tooltip is active.
http://img474.imageshack.us/img474/7855/automatedqa5.png
Initially having the tooltip section grayed sounded like a good idea but that
would have made a user-defined one impossible.
3. Current tooltip retrieval order is not flawless. The inc file does not
contain an individual description for each command although tries to do
that for the majority of cases. Those cases can be problematic.
e.g.
by the user is expected anyway.
But in this case:
cm_CompareDirsWithSubdirs
tooltip -> Also mark subdirs not present in other dir
The tooltip is almost meaningless.
I have to admit though that there are more chances of a more complete inc file
than a menu file in terms of covering all commands. So, I don't oppose the
current order but I would like to suggest the following tweak:
An algorithm to check if an internal command has already a menu entry and use the
menu description as tooltip if not use the inc description for the tooltip. So, in
the case of cm_CompareDirsWithSubdirs which I already had a menu description I
would not have gotten "Also mark subdirs not present in other dir" but my
custom menu description "Compare Including Subdirs" as a tooltip.
So, the final order can become:
a. User-defined tooltip,
b. Main menu entry if one already associated with an internal command
c. Command description from wcmd_lng.inc (English: from totalcmd.inc),
d. cm_xyz without the prefix cm_ if a custom menu or .inc description for that command not present
e.g.
When a button doesn't have a tooltip defined apply one in the following order:
a. User-defined tooltip,
b. Command description from wcmd_lng.inc (English: from totalcmd.inc),
c. Same command from main menu,
d. cm_xyz without the prefix cm_
2. Automatically pass description in button bar configuration tooltip space when
a present association is found or (less professional) simply indicate the user that
an automated tooltip is active.
http://img474.imageshack.us/img474/7855/automatedqa5.png
Initially having the tooltip section grayed sounded like a good idea but that
would have made a user-defined one impossible.

3. Current tooltip retrieval order is not flawless. The inc file does not
contain an individual description for each command although tries to do
that for the majority of cases. Those cases can be problematic.
e.g.
Having said that, those cases are mainly for custom commands where customizationcm_SrcActivateTab1=5001;Activate first tab
cm_SrcActivateTab2=5002;Activate second tab
cm_SrcActivateTab3=5003;(Source window)
cm_SrcActivateTab4=5004;etc.
cm_SrcSortByCol1=6001; Sort by first column
cm_SrcSortByCol2=6002; Sort by second column
cm_SrcSortByCol3=6003; (source window)
cm_SrcSortByCol4=6004; etc.
cm_SrcCustomView1=271; Source: Custom columns 1
cm_SrcCustomView2=272; (user defined columns)
cm_SrcCustomView3=273; etc.
by the user is expected anyway.
But in this case:
cm_CompareDirsWithSubdirs
tooltip -> Also mark subdirs not present in other dir
The tooltip is almost meaningless.
I have to admit though that there are more chances of a more complete inc file
than a menu file in terms of covering all commands. So, I don't oppose the
current order but I would like to suggest the following tweak:
An algorithm to check if an internal command has already a menu entry and use the
menu description as tooltip if not use the inc description for the tooltip. So, in
the case of cm_CompareDirsWithSubdirs which I already had a menu description I
would not have gotten "Also mark subdirs not present in other dir" but my
custom menu description "Compare Including Subdirs" as a tooltip.
So, the final order can become:
a. User-defined tooltip,
b. Main menu entry if one already associated with an internal command
c. Command description from wcmd_lng.inc (English: from totalcmd.inc),
d. cm_xyz without the prefix cm_ if a custom menu or .inc description for that command not present