Akira's Commentary


Shape (non-rectangular) Window

This is a control (widget) to display shape (non-rectangular) window on OS/2 PM. I release source of shape window control and three sample programs using shape window.

Archive (v2.00, Dec. 2001)
Screen Shot of Sample Programs (Left Side Part)

Shape Window is just like X's Shape Extension. With this, you can create non-rectangular window on your desktop. I hope many one create cute accessories using this control.

Shape window library is released under LGPL. You can use (link/distribute) this library with any programs, including commercial products.

Sample Programs

trbitmap - display bitmap with transparent background

trbitmap shows given bitmap on your desktop with transparent background. It assumes color of lower left corner (0, 0) as background color, and pixels having same color as background. As result, picture other than background color will appear on your desktop.

trbitmap bitmap-file

This program consumes lot of system resources (CPU and memory). So large/complex bitmap slow down your computer.

Pictures found in XMascot are quite good candidates (but those pages are japanese only). Convert them into OS/2 bitmap and display, it makes your desktop softer. Archive contains some of such pictures under auther's permmision. Look at 'bitmaps' directory in the archive. You can get those pictures from DOKYUSEI2 (AKA NANPA2) Mascot Page.

tranime - animeation with several bitmaps

tranime shows animation with given bitmaps.

tranime bitmap-file ...

It displays control dialog. Set delay (mili-sec) and step (pixel) for next frame, and start animation. This program also consumes lot of system resources (CPU and memory). So large/complex bitmap slow down your computer. Try small, simple bitmaps first.

Try get some animate GIF, and convert each frames into OS/2 bitmap, and animate them with 'step' value 0. You will get animation on your desktop without any rectangular window frame. It consumes lot of CPU, but quite cool.

Archive contains some good pictures used with this program. Try

tranime bitmaps\multi*.bmp

Multi will sweep your desktop. These bitmaps are extracted and converted from XMulti package under permission of the auther (same as XMascot).

If you want to invoke 'tranime' via WPS, you need pass multiple bitmap files to program object. But normal program object invokes program for each files. If you want to pass multiple files into single instance of the program, them try Multiple Argument Program Object.

treyes - Shape Extension 付の xeyes もどき

treyes shows eyes tracking mouse pointer.

treyes

You will get eyes just like 'xeyes' on X.

This sample demonstrates how to change pictures on shape window. You can make 'oclock' look-a-like, with this method.

Update History

2001-12-06
Changed Lisence , bugfix

Now Shape Window Library was released under LGPL (former GPL). You can use this library without releasing your source code.

Also applied bug fix from Masami Kitamura (masamik@attglobal.net). It correct problem when using different hpsDraw/hpsMask pair.

1999-03-05
Speedup Tuning

Included speedup patch from Mr.Moeller (ulrich.moeller@rz.hu-berlin.de, author of 'XFolder'). This patch makes CPU load mush ligther.

1998-12-02
Bugfix and Speedup Tuning

Appended some mouse events notify. Included speedup patch from Mr.Suwa (jjsuwa@ibm.net). This patch make animation lighter, CPU usage was down to 80% to 60% on some animation.

Programs using Shape Window

Mr.Romy Watches You!

Mr.Romy maintains list of Japanese OS/2 users web page. While looking on Romy's Page, I got an idea of this program. Thanks to Mr.Romy for permission to use his picture.

Download   [Normal Version] [Xmas Version]
Requires EMX (0.9d or later) and shapewin.dll.

Osuwari (Sitting) Multi for OS/2 PM

'Osuwari Multi', originally developped for Windows, is well known desktop accessory in Japan. I have ported it to OS/2 PM. Be happy with *NadeNade*, *FuniFuni* on her.

For more detail...

Friends and Articles

OS/2 eZine
Romy's eye and Osuwari Multi were introduced OS/2 eZine's article.
MIA
Mr.Sofiya made cute program MIA using shae window library.
Tile Window Library
Mr. Suwa released another non-rectangular library, TileWindow and also released several NANJAKU programs using it. TileWindow takes Region as source of the shape (my version uses HPS).