Skip Menu |

This queue is for tickets about the Wx-Demo CPAN distribution.

Report information
The Basics
Id: 32607
Status: resolved
Priority: 0/
Queue: Wx-Demo

People
Owner: Nobody in particular
Requestors: Marek.Rouchal [...] gmx.net
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.09
Fixed in: (no value)



Subject: patch: wrong base class used in one example in Wx::Demo
I kept getting errors when starting up Wx::Demo (logged in the bottom right frame): 09:23:34 AM: Warning: Skipping module 'Wx::DemoModules::wxHVScrolledWindow' 09:23:34 AM: Warning: Base class package "Wx::PlHVScrolledWindow" is empty. 09:23:34 AM: Warning: (Perhaps you need to 'use' the module which defines that package first.) 09:23:34 AM: Warning: at /home/hwadm/.cpan/build/Wx-Demo- 0.09/blib/lib/Wx/DemoModules/wxHVScrolledWindow.pm line 16 09:23:34 AM: Warning: BEGIN failed--compilation aborted at /home/hwadm/.cpan/build/Wx-Demo- 0.09/blib/lib/Wx/DemoModules/wxHVScrolledWindow.pm line 16. 09:23:34 AM: Warning: Compilation failed in require at /home/hwadm/.cpan/build/Wx-Demo-0.09/blib/lib/Wx/Demo.pm line 306. 09:23:35 AM: Welcome to wxPerl! With the patch below the error is gone, but is it the correct solution? Cheers, Marek diff -ruN Wx-Demo-0.09/lib/Wx/DemoModules/wxHVScrolledWindow.pm Wx- Demo-0.09p1/lib/Wx/DemoModules/wxHVScrolledWindow.pm --- Wx-Demo-0.09/lib/Wx/DemoModules/wxHVScrolledWindow.pm 2007- 08-23 21:58:21.000000000 +0200 +++ Wx-Demo-0.09p1/lib/Wx/DemoModules/wxHVScrolledWindow.pm 2008- 01-24 09:17:42.000000000 +0100 @@ -13,8 +13,8 @@ package Wx::DemoModules::wxHVScrolledWindow; use strict; -use base qw(Wx::PlHVScrolledWindow); use Wx qw(wxWHITE wxHORIZONTAL wxVERTICAL); +use base qw(Wx::ScrolledWindow); use Wx::Event qw(EVT_PAINT);
Resolved in 0.11. The base class is only available in wxWidgets >=2.9