Wize /
Shaped Win
Search:  

Shaped Windows

Wize has builtin support for shaped windows on X11 and Windows. This creates a new command with the following extern:

  extern ::tk::shaped {window {image {}}} {} I

When called with an image, it sets the window shape from the transparent areas of image.

To restore the window back to rectangular, call it without animage.

See the demo below.

Demo

Here is a screenshot using shaped:

The source for this demo is here.

© 2008 Peter MacDonald

Page last modified on November 28, 2010, at 02:57 PM