Authors: New lister plugin function to avoid flickering

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

Moderators: white, Hacker, petermad, Stefan2

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

Authors: New lister plugin function to avoid flickering

Post by *ghisler(Author) »

In TC7 beta 2, there is a new function to avoid flickering when switching from one file to the next:
ListLoadNext

TC calls this function in the currently active plugin instead of ListLoadFile.If the plugin can handle the file, it can load it without being unloaded an reloaded. Plugins which do not implement ListLoadNext will be treated as in previous versions of TC.

I recommend to lister plugin writers to implement this new function if possible. You can find the documentation here:
http://ghisler.ch/board/viewtopic.php?t=12474
Author of Total Commander
https://www.ghisler.com
User avatar
majkinetor !
Power Member
Power Member
Posts: 1580
Joined: 2006-01-18, 07:56 UTC
Contact:

Post by *majkinetor ! »

:shock:


:D

Thank you.
Habemus majkam!
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2majkinetor !
You see, I was right. :)

No need in that ugly workarounds with temporary bitmaps etc.
Last edited by Alextp on 2006-11-25, 09:00 UTC, edited 1 time in total.
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Good news, thanks! :)

Icfu
This account is for sale
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Thanks for the new feature. I already gave it at try: SolidWorks® Preview plugin 1.1.0.0.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

ListLoadNext()

Post by *tbeu »

When I start the Quick View (CTRL+Q) the first time on a file I notice that both ListLoad() and ListLoadNext() is called. I just wonder why this needs to be done twice. This does not happen when viewing multiple files in Lister. TC Vs. is 7pb3.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Strange, that's not intentional. Something must be causing TC to make a refresh. I will try to find out what the problem is.
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

No changes here with TC7pb4.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

2tbeu
Wrote the same to "New interface documentation for TC 7".
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I had tried to reproduce this error in the debugger, but ListLoad and ListLoadNext were never called together. :(

I tried with several file types to call various plugins, no problem at all. Can you give me a link to a plugin where you see this behaviour, please?
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

I also tried it using a sample lister plugin and failed to reproduce the bug. If you do not mind I can send you my other plugin that shows the bug. Just the binary or even source?
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

If the plugin is available for download anywhere (e.g. totalcmd.net), then the binary will do. I will not run any binaries received via e-mail.
Author of Total Commander
https://www.ghisler.com
User avatar
tbeu
Power Member
Power Member
Posts: 1336
Joined: 2003-07-04, 07:52 UTC
Location: Germany
Contact:

Post by *tbeu »

Currently this particular plugin is not yet available by download as I just tried to implement the ListLoadNext feature. Therefore, I sent you the plugin source.
TC plugins: Autodesk 3ds Max / Inventor / Revit Preview, FileInDir, ImageMetaData (JPG Comment/EXIF/IPTC/XMP), MATLAB MAT-file Viewer, Mover, SetFolderDate, Solid Edge Preview, Zip2Zero and more
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Thanks, I will test it!
Author of Total Commander
https://www.ghisler.com
Post Reply