Hi,
How does the lc_setpercent Command in ListSendCommand work? In the sample plugin this command is never sent. I need to view huge files that have a custom format.
Thanks,
Mark
load file partially in Lister plugin
Moderators: Hacker, petermad, Stefan2, white
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
TC calls ListSendCommand with this parameter when the user clicks the % item in the main menu and enters a percentage value. Your plugin can react to this by scrolling to the approppriate position in the document (if applicable).
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
See the documentation of WM_COMMAND in the lister plugin interface help. The plugin has to send itm_percent messages to the calling program to update the % display.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
how to react to operator scrolling?
Hi,
From the The internal file lister (F3) Help:
"The integrated file lister allows to view files of almost any size (now up to 2^63 bytes) in text, unicode, html, binary or hex format, bitmap graphics, multimedia files, and now also RTF files. It keeps only a small part of the file in memory (except for bitmaps), the rest is automatically loaded when scrolling through the text."
Huge files, I need to do the "It keeps only a small part of the file in memory (except for bitmaps), the rest is automatically loaded when scrolling through the text." part in my custom lister.
WM_COMMAND shows how to post the percentage, but not how to hook the "when scrolling" to know what section to display and what percentage to post.
I tried this:
SendMessage(hwnd, EM_SETEVENTMASK, 0, ENM_UPDATE|ENM_SCROLL);
, it didn't work. How do I get scroll notifications in a custom lister?
Thanks,
Mark
From the The internal file lister (F3) Help:
"The integrated file lister allows to view files of almost any size (now up to 2^63 bytes) in text, unicode, html, binary or hex format, bitmap graphics, multimedia files, and now also RTF files. It keeps only a small part of the file in memory (except for bitmaps), the rest is automatically loaded when scrolling through the text."
Huge files, I need to do the "It keeps only a small part of the file in memory (except for bitmaps), the rest is automatically loaded when scrolling through the text." part in my custom lister.
WM_COMMAND shows how to post the percentage, but not how to hook the "when scrolling" to know what section to display and what percentage to post.
I tried this:
SendMessage(hwnd, EM_SETEVENTMASK, 0, ENM_UPDATE|ENM_SCROLL);
, it didn't work. How do I get scroll notifications in a custom lister?
Thanks,
Mark
- ghisler(Author)
- Site Admin
- Posts: 50390
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Try this:
SendMessage(hlisterwnd, WM_COMMAND, itm_percent, percentvalue);
SendMessage(hlisterwnd, WM_COMMAND, itm_percent, percentvalue);
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com