in reply to How to be always on TOP

Hi!

There is module on CPAN: Tk::StayOnTop.

Regards, mawe

Replies are listed 'Best First'.
Re^2: How to be always on TOP
by gerry (Sexton) on Feb 28, 2005 at 20:27 UTC
    I tried using the StayOnTop.pm module, but I must be doing something wrong. I'm on Perl 5.8.0 so I assume I must use Win32::API. I downloaded API.pm into the ...\lib\Win32 directory. I also downloaded StayOnTop.pm into the ..\lib\Tk directory.

    I now have the following at the beginning of my code:

    use Tk; use Win32::API; use Tk::StayOnTop; use IO::Socket; use IO::Select;

    I updated the @INC to point to the Win32 directory. However, whenever, I attempt to run the program I keep getting the message:

    Can't locate loadable object for module Win32::API in @INC (@INC conta +ins: C:\Perl\site\lib\Win32 C:\Perl\site\lib C:\Perl\site\lib\Win32\A +PI c:/Perl/lib c:/Perl/site/lib .) at smalllights.pl line 13

    I am not sure which loadable object is causing the problem. Is it possible that I need another module?

      You may need to install the module using the ppm tool.

        SUCCESS! Thanks for everyone's help. I never used ppm before. It took me awhile to figure out how to install something that resided in multiple repositories, but it worked!

        I haven't worked with packages so the installation process wasn't familiar to me. However, everything is now working great. My little utility remains on top regardless what is moved over it (or should I say under it now).

        Again, thanks for all your help. Gerry

      Win32::API contains code that must be compiled, install it properly using CPAN.pm or the makefile.pl it comes with.