Tooltip configuration

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Tooltip configuration

Post by *funkymonk »

Code: Select all

08.03.22 Added: New internal command cm_SwitchFileTipWindows to enable/disable the display of tooltips (hints) for files. Also accepts parameters 0=toggle, 1=on, 2(or -1)=off (32/64)
This is a great idea, since tooltips can be very helpful and a bit annoying at times.

What about a 3rd option besides on and off: "only for icon"?

When set, the tooltips are not entirely deactivated but do only show up once the mouse hovers the file icon.
This would give convenient access to the information but avoids most "accidental" tooltip displays when moving the mouse.

Regarding toggle, TC could then either iterate over the 3 options or switch between off and on/icon (depending on what was used last).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48021
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Tooltip configuration

Post by *ghisler(Author) »

Sounds like a good idea, I will consider it.
Author of Total Commander
https://www.ghisler.com
User avatar
solid
Power Member
Power Member
Posts: 747
Joined: 2004-08-09, 11:20 UTC

Re: Tooltip configuration

Post by *solid »

While on subject on tooltips configuration,
what about expanding the 'custom fields editor' to multiline editor, even with preview like in the plugin property browser in the MRT?

The single line is too cumbersome for editing, especially for tooltips with several lines using plugin fields. The text is just too long to be displayed in one field and navigation in text is very troublesome.
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: Tooltip configuration

Post by *funkymonk »

solid wrote: 2022-04-23, 09:45 UTC While on subject on tooltips configuration,
what about expanding the 'custom fields editor' to multiline editor, even with preview like in the plugin property browser in the MRT?

The single line is too cumbersome for editing, especially for tooltips with several lines using plugin fields. The text is just too long to be displayed in one field and navigation in text is very troublesome.
I can certainly confirm this and a more convenient GUI would be great.

I always use a plain text editor to edit the tooltips ini more conveniently in multiple lines.
Even though this comes with some other drawbacks (e.g., the missing selection of available fields) I still prefer this option over the single line textbox in the tc config.
Ziabrev
Junior Member
Junior Member
Posts: 29
Joined: 2022-05-12, 18:03 UTC

Re: Tooltip configuration

Post by *Ziabrev »

Also takes parameters 0 = toggle, 1 =on, 2 (или -1) =off (32/64)

Where and how are these parameters received?.
Last edited by Ziabrev on 2022-05-12, 18:46 UTC, edited 1 time in total.
User avatar
white
Power Member
Power Member
Posts: 4594
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Tooltip configuration

Post by *white »

Ziabrev wrote: 2022-05-12, 18:16 UTC Также принимает параметры 0 = toggle, 1 =on, 2 (или -1) =off (32/64)

Где и как принимаются эти параметры?.
Translation:
Also accepts parameters 0 = toggle, 1 =on, 2 (or -1) =off (32/64)

Where and how are these parameters received?.

Moderator message from: white » 2022-05-12, 18:26 UTC

Please use English on this forum
Ziabrev
Junior Member
Junior Member
Posts: 29
Joined: 2022-05-12, 18:03 UTC

Re: Tooltip configuration

Post by *Ziabrev »

2white
Accepted.
User avatar
tuska
Power Member
Power Member
Posts: 3741
Joined: 2007-05-21, 12:17 UTC

Re: Tooltip configuration

Post by *tuska »

Ziabrev wrote: 2022-05-12, 18:16 UTC Also takes parameters 0 = toggle, 1 =on, 2 (или -1) =off (32/64)
Where and how are these parameters received?.
HISTORY.TXT wrote: 12.04.22 Release Total Commander 10.50 beta 1
08.03.22 Added: New internal command cm_SwitchFileTipWindows to enable/disable the display of tooltips (hints) for files.
                         Also accepts parameters 0=toggle, 1=on, 2(or -1)=off (32/64)
If I understood you correctly, you want to know how to apply these parameters.
For example, you can create buttons with these commands:
  1. Code: Select all

    cm_SwitchFileTipWindows ... -OR- ... cm_SwitchFileTipWindows 0
    Toggle the display of tooltips (hints) for files.
    1. Point with the cursor to a file -> tooltip (hints) for files is displayed
    2. Click on the button -> disable the display of tooltips (hints) for files
    3. Click the button again -> enable the display of tooltips (hints) for files
  2. Code: Select all

    cm_SwitchFileTipWindows 1
    Enable the display of tooltips (hints) for files: ON (always)
    1 click on the button.
  3. Code: Select all

    cm_SwitchFileTipWindows 2
    Disable the display of tooltips (hints) for files: OFF (always)
    1 click on the button.
Button with command: cm_SwitchFileTipWindows 0

Code: Select all

TOTALCMD#BAR#DATA
cm_SwitchFileTipWindows 0

wciconex.dll,56
cm_SwitchFileTipWindows 0|Enable/disable the display of tooltips (hints) for files|Also accepts parameters 0=toggle, 1=on, 2(or -1)=off (32/64)|https://ghisler.ch/board/viewtopic.php?t=76391|Tooltip configuration


-1
Create a BUTTON in the Buttonbar (copy/paste CODE)
  1. Click on "SELECT ALL" (to the right of CODE:), then press CTRL+C (copy to clipboard).
  2. Right-click on any place in the button bar, then click on "Paste".
     ⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺⸺
  3. Option1: Point to the new button (slightly longer): 'Tooltip' is shown (-> description to the button).
                  A maximum of 259 characters is allowed for the tooltip. | = create line break, || = create | as separator character.
  4. Option2: Button bar - "Tooltip" field: A single space deactivates the display of the tooltip.
                  If the "Tooltip" field is empty, the content of the "Command" field is displayed.
  5. Option3: See FAQs and explanation: Button-code (TOTALCMD#BAR#DATA)  <-- <Ctrl+click on the link...>

2ghisler(Author)
Could you please do it at command: cm_SwitchFileTipWindows ... Toggle the display of tooltips (hints) for files
to enable the button to be displayed pressed/not pressed, analogous to the command: cm_ToggleAutoViewModeSwitch?
... EDIT: This is solved! -> Details
Last edited by tuska on 2022-05-19, 13:25 UTC, edited 1 time in total.
Ziabrev
Junior Member
Junior Member
Posts: 29
Joined: 2022-05-12, 18:03 UTC

Re: Tooltip configuration

Post by *Ziabrev »

2tuska
I understand the use of parameters for the command "cm_SwitchFileTipWindows"
Thank you.
User avatar
funkymonk
Senior Member
Senior Member
Posts: 410
Joined: 2013-12-04, 09:56 UTC

Re: Tooltip configuration

Post by *funkymonk »

Thank you for considering the request and adding FileTipWindowsOnIcon. Great!
Post Reply