Properties for jWPS objects
Object Key Value type What is it?
JWPObject CCView int Determines the concurrent view setting for the object. in other words, this sets up how new views are handled. Possible values are:
  • TRUE – concurrent views are allowed
  • FALSE – concurrent views are not allowed
  • SYSTEM_DEFAULT – use whatever the system default is
JWPObject CopyAllowed boolean Set true to allow copies of the object to be made (default), false otherwise.
DefaultView int Sets the default view for the object using its numeric ID. The pre-defined values and the objects they apply are as follows. remember that by inheritence if the value works for a class it works for all subclasses:
  • ViewOpenSettingsNotebook (JWPObject) The settings notebook should be opened.
  • ViewOpenDefault (JWPObject) The system default for the class should be used. This is what happens on a double click.
  • ViewOpenHelp (JWPObject) Open the help for the object
  • ViewOpenIcon (JWPFolder) Opens the icon view
  • ViewOpenDetails (JWPFolder) Opens the details view
  • ViewOpenTree (JWPFolder) Open the tree view
  • ViewOpenAuto (JWPDisk)
  • ViewOpenPalette (JWPPalette) Opens the palette view
  • ViewOpenPromptDialog (JWPPalette) Opens the prompt dialog.
  • ViewOpenAndRun (JWPProgram and JWPProgramFile) Runs the program.
One final comment is that there may be custom views defined for the class. These are numbered too and as such jWPS is forced to just let any and all values pass through. Here we have a problem with OS/2. If the user requests a non-existent view, it is ignored and there is no mechanism for OS/2 to communicate this. Therefore, if you are attempting to set a view and it fails, you might want to check your arguments. Sorry, best we could do...
JWPObject DeleteAllowed boolean Set true to allow this object to be deleted (default), false otherwise.
JWPObject DragAllowed boolean Set true to allow this object to be dragged (default), false otherwise.
JWPObject DropAllowed boolean Set true to allow dropping this object on another object (default), false otherwise
JWPObject DropOnAllowed boolean Set true to let this object be a target for drag and drop from another object (default), false otherwise.
JWPObject IconFile Any of OS2FileIcon,, JWPIcon, This sets the objects icon from a file. Note that this should be an icon (.ico extension). OS/2 will cheerily let you set any file. If the format is not correct, then OS/2 reverts to the class default for the icon, yielding no information. In the case of file system objects this data is written to the icon EA, otherwise it will be stored in one of the .ini files.
JWPObject IsTemplate boolean Set true to make this object into a template, false otherwise (default).
JWPObject IsVisible boolean Set true to let this object be visible to the user (default), false otherwise.
JWPObject LockedInPlace boolean Set true to lock this object in place, i.e. opening the icon view of the folder that contains this object, the icon always has a fixed position, false otherwise (default).
JWPObject MinimizeButtonAppearance int This determines how the frame control (alias minimize) button looks to the user. Values are:
  • HIDE – a hide button is displayed.
  • MINIMIZE – a minimize button is displayed.
  • SYSTEM_DEFAULT – the system default is used (default).
Note that if minimize button is set to being a hide button, then changing the MinimizeButtonBehavior will have no effect. You may still set it and these settings will occur if this property is changed to allow it.
JWPObject MinimizeButtonBehavior int What the minimize button should do (you can set this on the Window page of the object's settings notebook too). Values are:
  • DESKTOP – minimze the window to the desktop
  • HIDE – hide the window
  • SYSTEM_DEFAULT – use whatever the system default is (default)
  • VIEWER – minimize the window to the Minimized Window Viewer
JWPObject MoveAllowed boolean Set true to allow this object to be moved (default), false otherwise.
JWPObject ObjectID String A string of the form <whatever>. You may reset these at any time.
Caveat: Every object that you set an ID has this value stored in an .ini file. Setting lots of object IDs can dramatically slow system responsiveness and doing something like assigning an ID to every file on your system will probably make the system unstable. Object IDs are intended to be used for objects that may vary from installation to installation (such as the desktop). There are several system objects that have pre-defined IDs. These are in JWPConstants and all start with "id", e.g. idDrives is the drives object. Also, not every system has every object. If, for example, you did not install the tutorial attempting to access idTutorial will, of course, fail.
JWPObject PrintingAllowed boolean Set true to allow this object to be printed (default), false otherwise.
JWPObject RenameAllowed boolean Set true to allow this object to be renamed by the user (default), false otherwise.
JWPObject SettingsAllowed boolean Set true to allow the settings of the object to be opened (default), false otherwise.
JWPObject ShadowAllowed boolean Set true to allow shadows of this object to be created (default), false otherwise.
JWPObject Title String The title for this object. There is a limit of 256 characters in length