Tkx::WinIco - The taskbar extension for Tkx on Win.
Version 0.01
Quick summary of what the module does. Perhaps a little code snippet.
use Tkx; use Tkx::WinIco; # Some Tk Stuff. Tkx::option_add('*Menu.tearOff', 0); # Get reference to "." and create context menu. my $mw = Tkx::widget->new('.'); my $menu = $mw->new_menu(); $menu->add_command( -label => 'Quit', -command => sub { $mw->g_destroy(); }, ); # Create icon resource. my $icon = Tkx::WinIco->new('./icons/1.ico'); # Add icon to taskbar. $icon->taskbar_add(text => 'Tooltip'); # Change tooltip. $icon->taskbar_modify(-text => 'New tooltip'); # Hide icon. $icon->taskbar_delete(); # Restore icon. $icon->taskbar_add(); # Bind events. $icon->bind('WM_RBUTTONUP' => sub { my ($ico, $message, $x, $y) = @_; $menu->g_tk___popup($x, $y); }); # Main loop. Tkx::MainLoop(); 1;
Install Tkx::WinIco as usual perl package.
Download winico06.zip module from http://sourceforge.net/projects/tktable/files/winico/0.6/ then extract Winico06.dll from archive and put it into same directory as a script.
However, you can specify any other path using
use Tkx::WinIco {dll => './libs/winico.dll'};
Alexander Nusov, <alexander.nusov+cpan at gmail.com>
<alexander.nusov+cpan at gmail.com>
Please report any bugs or feature requests to bug-tkx-winico at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Tkx-WinIco. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-tkx-winico at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Tkx::WinIco
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Tkx-WinIco
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Tkx-WinIco
CPAN Ratings
http://cpanratings.perl.org/d/Tkx-WinIco
Search CPAN
http://search.cpan.org/dist/Tkx-WinIco/
Leo Schubert, Brueckner&Jarosch Ing.-GmbH
Pat Thoyts.
Copyright 2010 Alexander Nusov.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Tkx::WinIco, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Tkx::WinIco
CPAN shell
perl -MCPAN -e shell install Tkx::WinIco
For more information on module installation, please visit the detailed CPAN module installation guide.