Lister plugin API unicode version?

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

Moderators: Hacker, petermad, Stefan2, white

Post Reply
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Lister plugin API unicode version?

Post by *speller2 »

Hi all,
Is there a unicode version of lister plugin APIs which works with strings? Such as TListDefaultParamStruct, ListLoad, ListGetDetectString, ListSearchText, ListPrint, ListGetPreviewBitmap. If this functions still ANSI only, why so?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Just read section 5 (Unicode Support) of WLX interface reference:
The following functions of the lister plugin interface support Unicode:

ListLoadW

ListLoadNextW

ListPrintW

ListGetPreviewBitmapW

ListSearchTextW (used to search for Unicode text in Unicode documents)

The following functions do not exist in a Unicode form and must be implemented as ANSI:

ListSendCommand

ListNotificationReceived

ListCloseWindow

ListGetDetectString

ListSetDefaultParams

ListSearchDialog
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Post by *speller2 »

Thak you for your answer!
I searched ghisler site very long time and did not found this link. Why it so secret? Also, two domains ghisler.com and ghisler.ch... When navigating them I always have words "WTF??? Where to find this f*king simple thing?" in my mind. But this is not all. If someone finally come to http://www.ghisler.ch/wiki/index.php/Plugins_interfaces , he will find OLD lister plugin interface definition link. Many respect to Christian for his work on TC, but sites structure is pzdc.
Sob
Power Member
Power Member
Posts: 945
Joined: 2005-01-19, 17:33 UTC

Post by *Sob »

It's in Addons/Plugins section at ghisler.com. And yes, it's possible to miss if you don't expect it to be mixed in the list of plugins and look specifically for some Documentation section.
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Post by *speller2 »

I looked to new guide and have question: why ListDefaultParamStruct not defined in unicode? It contain Ansi chars field.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50479
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

TC doesn't currently support Unicode in ini file names everywhere, so it's sufficient to have ANSI version of this structure+function.
Author of Total Commander
https://www.ghisler.com
speller2
Junior Member
Junior Member
Posts: 92
Joined: 2009-01-26, 13:49 UTC

Post by *speller2 »

Thank you for explanation!
Post Reply