Page 1 of 1

Tooltip configuration

Posted: 2022-04-21, 15:39 UTC
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).

Re: Tooltip configuration

Posted: 2022-04-22, 09:11 UTC
by ghisler(Author)
Sounds like a good idea, I will consider it.

Re: Tooltip configuration

Posted: 2022-04-23, 09:45 UTC
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.

Re: Tooltip configuration

Posted: 2022-04-23, 10:10 UTC
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.

Re: Tooltip configuration

Posted: 2022-05-12, 18:16 UTC
by Ziabrev
Also takes parameters 0 = toggle, 1 =on, 2 (или -1) =off (32/64)

Where and how are these parameters received?.

Re: Tooltip configuration

Posted: 2022-05-12, 18:27 UTC
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

Re: Tooltip configuration

Posted: 2022-05-12, 18:48 UTC
by Ziabrev
2white
Accepted.

Re: Tooltip configuration

Posted: 2022-05-12, 21:15 UTC
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

Re: Tooltip configuration

Posted: 2022-05-13, 01:05 UTC
by Ziabrev
2tuska
I understand the use of parameters for the command "cm_SwitchFileTipWindows"
Thank you.

Re: Tooltip configuration

Posted: 2022-05-19, 05:09 UTC
by funkymonk
Thank you for considering the request and adding FileTipWindowsOnIcon. Great!