<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0" xml:base="http://community.activestate.com" xmlns:dc="http://purl.org/dc/elements/1.1/">
<channel>
 <title>ActiveState Community Site - Tk::MListbox on Vista - Comments</title>
 <link>http://community.activestate.com/forum-topic/tk-mlistbox-vista</link>
 <description>Comments for &quot;Tk::MListbox on Vista&quot;</description>
 <language>en</language>
<item>
 <title>A fix</title>
 <link>http://community.activestate.com/forum-topic/tk-mlistbox-vista#comment-5134</link>
 <description>&lt;p&gt;Something must have changed in the most recent versions of Perl, since MListbox code hasn&#039;t changed. The following should fix the problem. If you go into the MListbox code, and replace all those references of &lt;/p&gt;
&lt;p&gt;   $w-&amp;gt;can(&#039;SUPER:: &lt;/p&gt;
&lt;p&gt;with &lt;/p&gt;
&lt;p&gt;   $w-&amp;gt;can(&#039;Tk::Listbox:: &lt;/p&gt;
&lt;p&gt;then that should fix it.&lt;/p&gt;
&lt;p&gt;Rob&lt;/p&gt;
</description>
 <pubDate>Sun, 20 Apr 2008 23:57:24 +0100</pubDate>
 <dc:creator>RobSeegel</dc:creator>
 <guid isPermaLink="false">comment 5134 at http://community.activestate.com</guid>
</item>
<item>
 <title>Tk::MListbox on Vista</title>
 <link>http://community.activestate.com/forum-topic/tk-mlistbox-vista</link>
 <description>&lt;p&gt;I am having problems using Tk::MListbox on windows vista. The module works perfectly using the same version of ActivePerl on windows XP.&lt;/p&gt;
&lt;p&gt;The problem I have found is to do with the callbacks used to update each Tk::Listbox that Tk::MListbox uses.&lt;/p&gt;
&lt;p&gt;Firstly Tk::MListbox does not use Tk::Listbox directly, instead it derives Tk::CListbox from Tk::Listbox and adds the functionality to call a &#039;-updatecommand&#039; callback whenever something happens to it. The problem arises in the functions that initiate the &#039;-updatecommand&#039; callback.&lt;/p&gt;
&lt;p&gt;It uses ($w being a reference to the Tk::CListbox object)&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;$w -&amp;gt; can(&#039;SUPER::selectionSet&#039;);&lt;/pre&gt;&lt;p&gt;
Under windows XP this will return a CODE reference to the Tk::Listbox selectionSet function. However, under windows vista this function will not return anything and causes the calling of this reference to throw an error:&lt;/p&gt;
&lt;p&gt;Tk::Error: Not a CODE reference at C:/Perl/site/lib/Tk/MListbox.pm line 700.&lt;/p&gt;
&lt;p&gt;I have checked the can function at it will work correctly for&lt;/p&gt;
&lt;pre class=&quot;geshifilter&quot;&gt;$w -&amp;gt; can(&#039;selectionSet&#039;);&lt;/pre&gt;&lt;p&gt;referencing its own functions but fails with anything beginning with &#039;SUPER::&#039;&lt;/p&gt;
&lt;p&gt;Any ideas on why this is happening and a possible fix?&lt;/p&gt;
</description>
 <comments>http://community.activestate.com/forum-topic/tk-mlistbox-vista#comments</comments>
 <category domain="http://community.activestate.com/forums/activeperl-support-0">ActivePerl Support</category>
 <category domain="http://community.activestate.com/os/windows-vista">Windows Vista</category>
 <pubDate>Thu, 24 Jan 2008 11:57:25 +0000</pubDate>
 <dc:creator>stevedwyer</dc:creator>
 <guid isPermaLink="false">1854 at http://community.activestate.com</guid>
</item>
</channel>
</rss>
