Dec 112017
A really great OS/2 1.2 program for controlling the appearance and actions of your desktop enviroment.
File DESKTP12.ZIP from The Programmer’s Corner in
Category OS/2 Files
A really great OS/2 1.2 program for controlling the appearance and actions of your desktop enviroment.
File Name File Size Zip Size Zip Type
DESKTOP.DLL 14848 7048 deflated
DESKTOP.DOC 11728 4660 deflated
DESKTOP.EXE 11207 6491 deflated

Download File DESKTP12.ZIP Here

Contents of the DESKTOP.DOC file

PM Desktop 1.2
Darrin Massena


PM Desktop is a simple application designed to enhance the OS/2 Presentation
Manager environment. PM Desktop is currently most useful for putting fancy
images on the desktop background and to generally impress and amaze your
friends with how cool OS/2 PM is. In the future, PM Desktop will provide
many more useful (and not so useful) enhancements to the PM environment.

I wrote PM Desktop in my spare late-night hours and weekends and it is not a
Microsoft sponsored or supported program. I hope this help file answers all
your questions about PM Desktop since I don't have much spare time to
support it myself.

The three Desktop files (DESKTOP.DLL, DESKTOP.EXE, DESKTOP.DOC) should all
be distributed together since only two of them, without the other, could be
worse than useless.


Installing PM Desktop is a simple 5 step process:

1. Get OS/2 1.2 with PM up and running.
2. Put the DESKTOP.DLL somewhere on your LIBPATH, i.e. \os2\dll.
3. Execute the PM Desktop command program with the install option flag,
"desktop -i".
4. Reboot OS/2 and PM.
5. Pat yourself on the back, you're all finished.


Using PM Desktop is easy- just click somewhere on the desktop surface, some-
where where the screen background isn't covered by a window, and up pops the
Desktop Menu. You'll notice many disabled menu items; PM Desktop doesn't
get as much development attention as it deserves and many features are
currently disabled because they're either buggy or just unimplemented.
These features and more will be enabled in future versions of PM Desktop.

These are the currently implemented features as shown on the Desktop Menu.
'+' denotes a submenu title and '-' an individual submenu item.


Selecting 'Background...' allows you to select a new background picture for
your desktop. Use the file dialog to find the background picture you want
and double-click on it, or press the 'Open' button to load and display the
new picture. If the file you select is not a valid PM bitmap, then the
current picture will be thrown away and no new picture will be displayed.

+ Settings

The 'Settings' submenu allows you to control various Desktop parameters via
several configuration dialogs. Most settings are written out to OS2.INI and
become permanent -- even across machine reboots -- until you next change

- PM Desktop...

The 'PM Desktop...' settings dialog can be used to configure the general
behavior of PM Desktop. It provides control over how the Desktop Menu is
invoked, how the background picture should be displayed, and whether or not
PM Desktop adds the Desktop Menu to all windows that have a System Menu on

If 'Enable '/' Menu' is not selected (default), PM Desktop leaves your
window's System Menus alone. If the '/' menu enabled, PM Desktop adds the
Desktop Menu into the System Menu of all windows created from then on. This
allows you to get to PM Desktop's functions even when the desktop is
completely obscured, say by a maximized application.

'Enable VIO Pasting' enables a new command on the system menu of VIO
applications running in a window, like CMD.EXE. The new command 'Paste'
allows the contents of the clipboard to be pasted into the window. When
combined with the VIO 'Mark' and 'Copy' commands, this very handy feature
provides complete cut/paste ability to people who use VIO editors and other
OS/2 character mode applications. Thanks to Mark Taylor for this feature.

The 'Debug' checkbox is for people who are running 'debug' versions of OS/2.
It changes the way PM Desktop repaints the background such that the debug
version string appears at the bottom of the screen. This has the nasty side
effect of causing the background to be repainted incorrectly under certain
rare timing situations. If you use a retail version of PMWIN or you aren't
interested in seeing the version string, leave this option in its default
state (disabled).

The group of 'Desktop Menu Activation' radio buttons specifies how you
invoke the Desktop Menu. You can choose double-clicking, single-clicking
(default), or disable the Desktop Menu altogether. Be careful when
disabling the Desktop Menu. If you don't have the '/' menu enabled, you
won't be able to get at PM Desktop's functions any more. If this happens by
accident, you can recover by deinstalling PM Desktop and reinstalling it
again. To do this, simply type "desktop -d" (to deinstall) and then
"desktop -i" (to reinstall). You must reboot for reinstallation to take

The 'Background Type' group allows background pictures to be displayed in
several different ways.

'No Background'

Since a full-screen color VGA background picture takes away 153K of your
memory or a full-screen 8514A picture takes 786K, you might want to
choose the 'No Background' style when memory gets tight.


This is the default and causes the specified picture to be centered on
the screen. If the image is too big to fit, it is clipped to the size
of the screen.

'Tiled Image'

Smaller pictures can be 'wallpapered' across the desktop with this
option. The picture is replicated horizontally and vertically to
completely cover the background. Note: for performance reasons, this
takes as much memory as non-tiled full-screen picture. Very small
pictures should be tiled using the memory saving 'Pattern' option.

'Scaled Image'

When displaying a picture that was created for another display device,
use this option to scale (stretch/shrink) the picture to cover the
background. Note: there is a known OS/2 bug that will cause an error to
occur when scaling very small bitmaps into large bitmaps. If you select
'Scaled Image' and the resultant background looks like garbage, try
another display option or a new larger picture.


If you like a simple repetative background images, 'Pattern' is the
display option for you. 'Pattern' takes the first 8x8 area of the
background picture and tiles it over the whole screen. 'Pattern' has an
advantage over 'Tiled Image' because it uses far less memory. A typical
8x8 pattern only requires 128 bytes of memory, compared with the
153,000+ bytes required by a tiled or full-screen picture.

+ Arrange

Minimize - Minimize ALL applications.
Restore - Restore ALL applications. This isn't too useful if you have
one or more full-screen sessions running.

+ Switch - Switch directly to any other application, without going through
the Task Manager.

+ Toys
Stupid - This dances a few lines around the screen. Mildly entertaining
but it has a few painting problems and can leave harmless trash
on the screen.

+ Snapshot

The two different 'Snapshot' menuitems allow you to take a 'snapshot' of a
window or the screen and place it on the clipboard as a bitmap image. Once
a snapshot is taken it can be pasted into any application that can paste
images from the clipboard. This can be used to include window and screen
shots in mock-ups, demonstrations, and documentation.

- Window

This snapshots the currently active frame window's image to the clipboard.
The keyboard equivelent to this menu item is 'Shift+PrintScreen', but will
not work if the active window is a 'VIO' window.

- Screen

This snapshots the entire screen image to the clipboard. The keyboard
equivelent to this menu item is 'Ctrl+PrintScreen', but will not work if the
active window is a 'VIO' window.


'About...' tells you a bit about the great guys behind PM Desktop as well as
the current version number. This document was written for version '1.2' of
PM Desktop.


This program is provided to support changing the desktop background from
the CMD.EXE command line or from batch files. Now, all you people without
mice can still have beautiful desktop backgrounds. A typical example of
using DESKTOP.EXE would be to load a picture from a network server at boot
time. Adding something like this to your STARTUP.CMD would do the trick:

net logon myname /y
net use o: \\os2stuff\pmdemos
desktop -s o:\bitmaps\nifty.bmp

Other possibilities include launching a command file a periodic intervals
to change your background picture. Even simple slide shows are possible.
DESKTOP.EXE supports almost all the options that are accessible from the
Desktop Menu. Here's the syntax for the DESKTOP.EXE's parameters.

Usage: desktop [-cdinprst?] [-x #] [-y #] [picname]

-c : Centers the picture on the screen.
-d : Deinstalls PM Desktop completely (upon reboot).
-i : Installs PM Desktop in OS2.INI, resets Desktop Options.
-n : Removes the background picture (frees picture memory).
-p : Uses the picture as an 8x8 pattern (takes less memory than tiling).
-r : Retain the picture name in OS2.INI for next boot.
-s : Scales the picture to fill the screen.
-t : Tiles the picture, filling the screen.
-? : Print this help message.
-x # : Places the picture at the specified x coordinate.
-y # : Places the picture at the specified y coordinate.

Some options (-dir) have no effect until the system is rebooted.


On \\hagar\scratch \c-stankr\pics there is a text file called 'registry'.
This file contains a listing of servers that have PM .BMP format pictures
which can be used as PM Desktop backgrounds. If you have pictures of your
own that you'd like to share just add your server\share to the registry


The PM Desktop DLL provides application interfaces for querying the PM
Desktop state, setting the desktop background, and loading PM .BMP format
bitmap files. Documentation on these Desktop APIs is in the DESKTOP.H
file. DESKTOP.H and DESKTOP.LIB along with the source for DESKTOP.EXE can
be found on \\toys\desktop.


If, by chance, you find any bugs in PM Desktop, send mail to me (darrinm)
describing how to reproduce the problem and I'll fix it. If you have any
ideas for neat new features that would be appropriate for PM Desktop, send
'em to me and I'll see what I can fit in.


Ver 1.2, 17-Sep-89

Works under OS/2 1.2.
Replaced DESKINST.EXE with the new PM Desktop command program, DESKTOP.EXE.
Added new background settings TILE, SCALE and PATTERN.
Added VIO Paste enabling capability.
Rearranged menus a bit, removed some dead wood.
The Stupid toy is now colorful.
Misc optimizations, DESKTOP.DLL is now ~500 bytes smaller.
Removed 'Arrange tile, cascade' because of changes to the Desktop Manager.
Fixed misc rude bugs.

Ver 1.21, 29-Sep-89

Added support for BITMAPARRAYs. Now you can create desktop background
images and patterns with the Icon Editor.
Now automatically switches to 'Image' display mode if you load a desktop
background while none is currently being displayed.
Added a work-around for the initial desktop painting bug in PMWIN.

 December 11, 2017  Add comments

Leave a Reply