Jump to content

WPTools: Difference between revisions

From EDM2
Ak120 (talk | contribs)
m Ak120 moved page OS2 API:WPTools to WPTools: wrong category
Ak120 (talk | contribs)
No edit summary
Line 9: Line 9:


==Functions==
==Functions==
* [[OS2 API:WPToolsLoadFuncs|WPToolsLoadFuncs]]
* [[WPToolsLoadFuncs]]
* [[OS2 API:WPToolsQueryObject|WPToolsQueryObject]]
* [[WPToolsQueryObject]]
* [[OS2 API:WPToolsFolderContent|WPToolsFolderContent]]
* [[WPToolsFolderContent]]
* [[OS2 API:WPToolsSetObjectData|WPToolsSetObjectData]]
* [[WPToolsSetObjectData]]
* [[OS2 API:WPToolsVersion|WPToolsVersion]]
* [[WPToolsVersion]]
 
==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:
<PRE>
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.
</PRE>
:(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==
==Links==

Revision as of 23:59, 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

Links