WLX: ListPrint() arguments
Moderators: Hacker, petermad, Stefan2, white
WLX: ListPrint() arguments
In the printer setup / printer configuration dialog of the lister the default printer, fonts and margins can be set. Default printer and margins are passed to the ListPrint() function of lister plugins (wlx) whereas the fonts are not. Any reason why fonts and font sizes are neglected for ListPrint()?
Last edited by tbeu on 2011-09-21, 10:01 UTC, edited 2 times in total.
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
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Originally, the lister plugin interface was developped mainly for graphical plugins, to show exotic image file formats etc. It wasn't meant as a replacement of the internal text viewer, that's why the font wasn't seen as necessary information for the plugin. the same is true for the fonts set for the normal display mode of the internal lister functions.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
FileToPrint
Is it by design that only the file name (and extension) is passed to ListPrint() whereas the full path name is passed to ListLoad()?
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
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
The name is there just to show it in the print spooler. You can identify the file to be printed via the parameter ListWin.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Then you must correct the listplugin.hlp which currently reads
FileToPrint The full name of the file which needs to be printed. This is the same file as loaded with ListLoad.
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
listplugin.hlp 2.0 still reads
, however FileToPrint of ListPrint() and FileToLoad of ListLoad() are not the same strings.FileToPrint The full name of the file which needs to be printed. This is the same file as loaded with ListLoad.
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
- ghisler(Author)
- Site Admin
- Posts: 50475
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
What do you mean? Do you get a different name passed to ListPrint than to ListLoad?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Is the reply still relevant to the newer TC versions? If so, what do you think about the following idea:ghisler(Author) wrote:..., that's why the font wasn't seen as necessary information for the plugin. the same is true for the fonts set for the normal display mode of the internal lister functions.
TC selects one of the fonts (ANSI, ASCII) as a font for lister's parent window. (The parent window is under control of TC). After that, this font is reachable to lister functions by invoking GetCurrentObject() for parent window HDC.
The solution permits to pass down at least one font resource (from three) without changing or extending the current plugin interface API.