Improve Dark Help for TC

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: white, Hacker, petermad, Stefan2

User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Improve Dark Help for TC

Post by *ghisler(Author) »

Yes, but you can't just inject that code into the regular help viewer. DrawItem is being called for each line of the index drawn in the list. You can't just intercept it and call SetTextColor and then call the original DrawItem, because it calls SetTextColor too, which would override what we called.
Author of Total Commander
https://www.ghisler.com
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: [TC 11.00rc1] Crash when using Help > Index > Keyword

Post by *petermad »

2white
white wrote: 2023-07-25, 17:52 UTC The codes are:
  • add "0x000400" for single-click mode
  • add "0x000200" for mouse-tracking
There is a problem with using this - it is not excactly a single-click option but an "expand only single heading" option and that means that it is not possible is to expand more than one item at the time - if you click on one item, the previous opened item is collapsed again - I find that problematic.

The value for Window Styles is hex format. Here is the decryption:
PARAM name = "Window Styles" value = "0xb0daec"
where:
c:
bit 1 - Plus / Minus squares | Plus / minus squares
bit 2 - Draw lines between items | Draw lines between elements of

bit 4 - Start line from the root | Start line from root element

e:
bit 2 - Show selection when focus lost | Show selection when focus is lost
Better to set - otherwise, with the Hide / Show combination, the current topic will not be displayed.

a:
bit 4 - Only expand a single heading | Expand only a single header
i.e. Automatically expand headings with sections when selected.

bit 2 - Automatically track selection | Automatically underline element
bit 1 - Put checkboxes (but why?) ...

d:
bit 1 - Select entire row | Highlighting a full line (useful thing)
only if the Draw lines between items

b style is not selected :
bit 8 - Border | Frame (only meaningful for Dialog Frame)
bit 4 - Dialog Frame | Dialog box

Example:
Total for 0x800627 we have:
8 - (Border)
6 - 4 + 2 (Only expand a single heading, Automatically track selection)
2 - (Show selection when focus lost)
7 - 4 + 2 + 1 (Plus / Minus squares, Draw lines between items, Start line from the root)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48088
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Improve Dark Help for TC

Post by *ghisler(Author) »

if you click on one item, the previous opened item is collapsed again - I find that problematic.
You can still click on "+" or use the keyboard to keep multiple items open.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.00rc1] Crash when using Help > Index > Keyword

Post by *white »

petermad wrote: 2023-08-02, 12:48 UTC There is a problem with using this - it is not excactly a single-click option but an "expand only single heading" option and that means that it is not possible is to expand more than one item at the time - if you click on one item, the previous opened item is collapsed again - I find that problematic.
I know the behavior. I personally don't find it problematic.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Improve Dark Help for TC

Post by *petermad »

2ghisler(Author)
You can still click on "+" or use the keyboard to keep multiple items open.
With <param name="Window Styles" value="0x800420">, as proposed by white for Dark help, the +'s are hidden. But keyboard navigation and Enter works with hidden +'s
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
white
Power Member
Power Member
Posts: 4623
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Improve Dark Help for TC

Post by *white »

petermad wrote: 2023-08-02, 19:20 UTC With <param name="Window Styles" value="0x800420">, as proposed by white for Dark help, the +'s are hidden. But keyboard navigation and Enter works with hidden +'s
When using the keyboard I like to use the arrow keys to navigate the books, no need to use the Enter key for that.
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Improve Dark Help for TC

Post by *petermad »

When using the keyboard I like to use the arrow keys to navigate the books, no need to use the Enter key for that.
Ahh, yes the right / left arrow opens a closes the book :-)
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Improve Dark Help for TC

Post by *petermad »

License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
KozakMak
Senior Member
Senior Member
Posts: 370
Joined: 2021-05-24, 12:39 UTC
Location: UA

Re: Improve Dark Help for TC

Post by *KozakMak »

https://ibb.co/HgMmT93

can you mark keys and sections that can only be changed by directly editing the INI file ?
OS: Win10 | TC: latest x64
User avatar
petermad
Power Member
Power Member
Posts: 14808
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Improve Dark Help for TC

Post by *petermad »

KozakMak wrote: 2023-08-03, 08:27 UTC https://ibb.co/HgMmT93

can you mark keys and sections that can only be changed by directly editing the INI file ?
What does that have to do with the Dark Help?

Are you maybe referring to this: viewtopic.php?p=438524#p438524 :?:
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply