in reply to creating skinable Perl/Tk apps

Yes. I've thought about it, I've even written a small tutorial, though I haven't published it (machine trouble ...).

The easiest way to implement a winamp type app is using Tk::Canvas. All you've got to do is load a bunch of pictures, determine their size (width/height), and place them at a certain location(x/y) on your canvas. You can also associate events with each canvas item, and once you do that, you're done.

One limitation is that you can't have a free-form window, or a transparent canvas, so whatever you create has to be square. update: I should say it may be possible using platform specific hacks and maybe some extensions (Tk::Zinc), but as a general rule, not portably.

update: See the overrideredirect docmentation in Tk::Wm.

MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
** The third rule of perl club is a statement of fact: pod is sexy.

Replies are listed 'Best First'.
Re^2: creating skinable Perl/Tk apps
by gri6507 (Deacon) on Feb 09, 2005 at 13:15 UTC
    Actually overrideredirect(1) does not do the same thing as Winamp. Let me be more specific: overrideredirect(1) does remove the window decorations, but it also removes the abilities to move the window and resize the window. How can that be done?
      How can that be done?
      Through platform specific hacks (diddling the decorative window), or by managing it yourself.

      MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
      I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
      ** The third rule of perl club is a statement of fact: pod is sexy.

        And just out of curiosity, even though i probably will get scared away by the answer, how does one manage a window themself?