Version 12 of TkTrans

Updated 2005-12-09 01:17:35

tktrans apparently implements shaped windows. It is available only for Windows.

lexfiend 4 Dec 2005: The project home page is at [L1 ], but the binary distribution at SourceForge [L2 ] seems to have been stubs-enabled by Jeff Hobbs, so it's probably a better bet.

schlenk 4 Dec 2005: Sadly this doesn't play nice with wm attributes -alpha.

JH The -alpha issue, or any call that causes a rewrap of the toplevel hwnd wraper (like overrideredirect), is that the SetWindowRgn API is applied to the toplevel hwnd wrapper "behind Tk's back", so when it rewraps, that is lost. Tk could look for that - assuming somebody might set it, but you should try and reapply the region after such changes.

MG This isn't actually related to TkTrans, but I'm guessing caused by the same thing as JH described there. I had some software installed (part of my graphics card) which allowed setting any window to be always on top. When I set a Tk program's window to always on top programatically (with wm attributes $win -topmost 1), then turned it off using this other program, Tk still reported it being always on top, and from then on in, any time i changed it in Tk, it reported the wrong setting. I'm guessing this is because querying wm attributes $win -topmost uses an internal counter to tell whether it's set always on top, instead of asking the OS, and Tk didn't ever see that it had been changed elsewhere?


DKF: This package works by using the bright magenta parts of an image as a mask. This is a horrible trick. FW: Not bright magenta in general, at least, just #FF00FF.

JH: I have a variant that works based off the transparent pixel (fully trnasparent areas are not drawn - partial transparency isn't supported, but may be possible in Win 2000+).


[ Category Package ]