Jump to content

WPTools: Difference between revisions

From EDM2
Ak120 (talk | contribs)
mNo edit summary
Line 1: Line 1:
==Description==
==Description==
WPTOOLS is a Dynamic Link Library that contains code to query the settings for workplace shell objects. This DLL is used by WPSBKP.EXE but can also be used from within a REXX program.
WPTOOLS is a Dynamic Link Library that contains code to query the settings for workplace shell objects. This DLL is used by WPSBKP.EXE but can also be used from within a REXX program.
==Download==
* [http://www.os2site.com/sw/util/wps/wptools33.zip Version 3.3]
* [ftp://ftp.netlabs.org/pub/wptools/hektools.zip Source Code]
* [https://github.com/OS2World/UTIL-WPS-WPTools Source code at Github]


==Files==
==Files==
Line 19: Line 14:
* [[OS2 API:WPToolsSetObjectData|WPToolsSetObjectData]]
* [[OS2 API:WPToolsSetObjectData|WPToolsSetObjectData]]
* [[OS2 API:WPToolsVersion|WPToolsVersion]]
* [[OS2 API:WPToolsVersion|WPToolsVersion]]


==APPENDIX I==
==APPENDIX I==
Line 26: Line 20:


==APPENDIX II==
==APPENDIX II==
WPToolsQueryObject has code to support (almost) all object classes for which object setup strings are defined, being:
WPToolsQueryObject has code to support (almost) all object classes for which object setup strings are defined, being:
<PRE>
<PRE>
Line 58: Line 51:
WPLaunchPad      All documented setup strings.
WPLaunchPad      All documented setup strings.
</PRE>
</PRE>
(1) Along with all settings for WPPrint.
:(1) Along with all settings for WPPrint.
(2) These settings cannot be used to recreate the object.
:(2) These settings cannot be used to recreate the object.
(3) MENU doesn't work when applying.
:(3) MENU doesn't work when applying.


For each object, WPToolsQueryObject returns setup string values not only for the object itself (when supported) but also for all parent classes. When, for example, one uses WPToolsQueryObject against the Desktop (class WPDesktop) setup strings will be returned from the classes WPFolder, WPFileSystem and WPObject.
For each object, WPToolsQueryObject returns setup string values not only for the object itself (when supported) but also for all parent classes. When, for example, one uses WPToolsQueryObject against the Desktop (class WPDesktop) setup strings will be returned from the classes WPFolder, WPFileSystem and WPObject.
Line 66: Line 59:
I did not build any support for WPSchemePalette because the setup string for this class do not support settings the colors on an individual basis but instead one should specify a color scheme name that is already present in the INI files.
I did not build any support for WPSchemePalette because the setup string for this class do not support settings the colors on an individual basis but instead one should specify a color scheme name that is already present in the INI files.


==Links==
* [http://www.os2site.com/sw/util/wps/wptools33.zip Version 3.3]
* [ftp://ftp.netlabs.org/pub/wptools/hektools.zip Source Code]
* [https://github.com/OS2World/UTIL-WPS-WPTools Source code at Github]


[[Category:The_OS/2_API_Project]]
[[Category:REXX Function Library]][[Category:Software written in C]]

Revision as of 23:28, 17 October 2016

Description

WPTOOLS is a Dynamic Link Library that contains code to query the settings for workplace shell objects. This DLL is used by WPSBKP.EXE but can also be used from within a REXX program.

Files

  • WPTOOLS.DLL

License

  • Freeware

Functions

APPENDIX I

The workplace shell class tree: OS2_API:WPS#Classes_Hierarchy

APPENDIX II

WPToolsQueryObject has code to support (almost) all object classes for which object setup strings are defined, being:

Class             Setup strings returned
-----             ----------------------

WPObject          CCVIEW, DEFAULTVIEW, HELPPANEL, HIDEBUTTON, MINWIN, NOCOPY,
                  NODELETE, NODRAG, NODROP, NOLINK, NOMOVE, NOPRINT, NORENAME,
                  NOSETTINGS, NOSHADOW, NOTVISIBLE, OBJECTID, TITLE
WPAbstract        TEMPLATE
WPProgram         ASSOCFILTER, ASSOCTYPE, EXENAME, MAXIMIZED, MINIMIZED,
                  NOAUTOCLOSE, PARAMETERS, PROGTYPE, SET, STARTUPDIR
WPShadow          SHADOWID
WPRPrinter        NETID (1)
WPPrint           APPDEFAULT, JOBDIALOGBEFOREPRINT, OUTPUTTOFILE, PORTNAME,
                  PRINTDRIVER, PRINTERSPECIFICFORMAT, PRINTWHILESPOOLING,
                  QSTARTTIME, QSTOPTIME, QUEUENAME, QUEUEDRIVER, SEPARATORFILE
WPServer          NETID (2)
WPNetgrp          NETID (2)
WPDisk            DRIVENUM
WPFontPalette     FONTS, XCELLCOUNT, YCELLCOUNT, XCELLWIDTH, XCELLHEIGHT,
                  XCELLGAP, YCELLGAP
WPColorPalette    COLORS, XCELLCOUNT, YCELLCOUNT, XCELLWIDTH, XCELLHEIGHT,
                  XCELLGAP, YCELLGAP
WPFileSystem      MENU (3)
WPProgramFile     ASSOCFILTER, ASSOCTYPE, EXENAME, MAXIMIZED, MINIMIZED,
                  NOAUTOCLOSE, PARAMETERS, PROGTYPE, SET, STARTUPDIR
WPFolder          ALWAYSSORT, BACKGROUND, DETAILSCLASS, DETAILSFONTS,
                  ICONFONT, TREEFONT, ICONNFILE, ICONVIEW, SORTCLASS,
                  TREEVIEW, DETAILSVIEW, WORKAREA,
WPLaunchPad       All documented setup strings.
(1) Along with all settings for WPPrint.
(2) These settings cannot be used to recreate the object.
(3) MENU doesn't work when applying.

For each object, WPToolsQueryObject returns setup string values not only for the object itself (when supported) but also for all parent classes. When, for example, one uses WPToolsQueryObject against the Desktop (class WPDesktop) setup strings will be returned from the classes WPFolder, WPFileSystem and WPObject.

I did not build any support for WPSchemePalette because the setup string for this class do not support settings the colors on an individual basis but instead one should specify a color scheme name that is already present in the INI files.

Links