[wxperl-users] changes in doc/view framework of wxPerl 0.26 ?

Hi ,

upgrading my windows installation to the newest active-state perl and
wxperl 0.26 breaks one of my apps using the doc/view framework.
When loading a document or creating a new one, my document constructor
GenericDocument::new() gets called.
But from GenericDocument::OnCreate() i can't get any debug message, so i
think it won't never be calledand the doc object remains uninitialized.

The same application behaved well under windows before the upgrade, as
it did on my linux server running open-suse 10.0 with wxperl 0.25.

Have there been any changes to the doc/view framework that i missed, or
have i done it the wrong way and it only happend to work by fortune?

please can anyone give me a hint?

regards,

Gerrit Wichert

p.s. this are the code snippets concerning doc/view:

app::OnInit:
 ...
  $this->{oDocManager} = AppDocManager->new( wxDOC_MDI);
  Wx::DocTemplate->new( $this->{oDocManager},
            "Greenstores Lieferantenkarte",
            "*.gsdc",
            "",
            "gsdc",
            "deliverer-card",
            "VIEW_DC",
            'GenericDocument',
            'GenericView',
             wxDEFAULT_TEMPLATE_FLAGS);
  my $frame = AppWnd->new( $this->{oDocManager}, undef, 1,
               "Green-Stores Datenerfassung",
               [10,10], [950,600]);
....


#-----------------------------------------------------------------------------
# class AppDocManager
#-----------------------------------------------------------------------------
package AppDocManager;
use vars  qw(@ISA);
@ISA = qw(Wx::DocManager);
{
  # The default wxWindows untitled name is "unnamedN" (where N is a number)
  # It's a bit ugly, and you can customise it...
  my $unnamed_doc_count = 0;
  sub MakeDefaultName {
    my ($docmgr, $name) = @_;
    return "Unbenannt" . ++$unnamed_doc_count;
  }
}

#-----------------------------------------------------------------------------
# class AppWnd
#-----------------------------------------------------------------------------
package AppWnd;
use strict;
use vars qw(@ISA);
@ISA=qw(Wx::DocMDIParentFrame);

use Wx::Event qw(EVT_MENU EVT_CLOSE);
use Wx qw(wxBITMAP_TYPE_ICO wxMENU_TEAROFF
          wxVERTICAL wxHORIZONTAL wxALL wxEXPAND
          wxDefaultPosition wxDefaultSize );

sub new {
  my $class  = shift;
  my ($oManager, $oParent, $nWindowId, $sTitle, $pos, $size) = @_;
  my ($this) = $class->SUPER::new( $oManager, $oParent, $nWindowId,
                   $sTitle, $pos, $size);
  $this;
}

#-----------------------------------------------------------------------------
# class GenericDocument
#-----------------------------------------------------------------------------
package GenericDocument;
use vars  qw(@ISA);
@ISA = qw(Wx::Document);

use Data::Dumper;

sub new {
  print STDERR  "GenericDocument:new\n";  #<------ This continues to be
printed when opening a new document
  my $class = shift;
  print  STDERR Dumper( @_);
  my ($this) = $class->SUPER::new( @_);
  return $this;
}

sub OnCreate {
  print STDERR "GenericDocument:OnCreate\n"; #<----- This i can't see
under windows any more
  my $this = shift;
  my ($sPath, $flags) = @_;
  print  STDERR "Document type: ".$this->GetDocumentName()."\n";
  print  STDERR Dumper( @_);
  $this->{oData} = DynDataDoc->new( "deliverer-card");
  if ($this->GetDocumentTemplate()->CreateView($this, $flags)) {
    $this->UpdateAllViews();
    return 1
  }
  return 0;
}





0
gw
5/10/2006 1:40:01 PM
perl.wxperl.users 3070 articles. 0 followers. Follow

0 Replies
347 Views

Similar Articles

[PageSpeed] 32

Reply:

Similar Artilces:

[wxperl-users] [ wxperl-Bugs-1460615 ] EVT_GRID_CMD_CELL_CHANGE possible typo in wxPerl 0.26
Bugs item #1460615, was opened at 2006-03-29 13:56 Message generated for change (Tracker Item Submitted) made by Item Submitter You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=115655&aid=1460615&group_id=15655 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Manuel Renz (pfuschi) Assigned to: Nobody/Anonymous (nobody) Summary: EVT_GRID_CMD_...

[wxperl-users] wxPerl 0.26 candidate
Hello, this is the usual binary set: Win32 ANSI and Unicode, Linux GTK2 Unicode, Mac 10.3 and 10.4 Unicode. http://www.barbon.org/wxperl/0.26/ For Linux, the wxWidgets RPMs used to compile wxPerl can be faound at: http://www.barbon.org/wxperl/0.26/wxWidgets/ Regards Mattia ...

[wxperl-users] [ANNOUNCE] wxPerl 0.26
A new version of wxPerl, the Perl bindings to wxWidgets, is out! You can download the sources from CPAN. Screenshots: http://wxperl.sourceforge.net/sshot01.html Binary packages for ActivePerl/Win32 8xx builds, Red Hat Linux and Mac OS X are available along with documentation in HTML and MS HTML Help format from http://wxperl.sourceforge.net/download.html Changes since the last release: - Fixed various Wx::GridBagSizer problems. - Fixed Original Object Return for Wx::PlGridCellEditor and Wx::PlGridCellRenderer. - Removed the requirement of deriving from Wx::App. - Expan...

[wxperl-users] Re:Some difficulty compiling wxPerl 0.26
Hello, in general, it is a good idea to send questions to wxperl-users@lists.sorceforge.net (CCd); I have limited connectivity these days. > I've tried to build and install wxPerl 0.26, but have come across a > compilation error. My system is Mandriva Linux 10.2. I have wxGTK 2.5.3= > installed. 'make' ran very cleanly until it got to compiling Constant.c= .. > The output is shown below: > > Constant.c: In function `double constant(const char*, int)': > Constant.c:640: error: `wxBUFFER_VIRTUAL_AREA' undeclared (first use th= is >...

[wxperl-users] wxPerl 0.05 binaries&docs
I just uploaded Wx-0.05 PPM for ActivePerl/Win32, and modified wxWindows docs ( tex, html, chm ) to ftp://wxperl.sourceforge.net/pub/wxperl/0.05/. The PPM is based on wxWindows 2.2.6, the docs are wxWin 2.2.6 docs + some wxPerl notes; you may browse the HTML version using the wxWindows help viewer. Regards Mattia ...

[wxperl-users] wxPerl 0.20
Hello, this is a source-only release that should solve all wxWidgets 2.5.2-related problems reported until now. Regards Mattia C:\Perl\.cpanplus\5.8.3\build\Wx-0.20>perl Makefile.PL Checking if your kit is complete... Looks good Writing Makefile for Wx::Grid Writing Makefile for Wx::STC Writing Makefile for Wx::Print Writing Makefile for Wx::DateTime Writing Makefile for Wx::Calendar Writing Makefile for Wx::DND Writing Makefile for Wx::Socket Writing Makefile for Wx::Html Writing Makefile for Wx::Help Writing Makefile for Wx::DocView Writing Makefile for Wx::XRC ...

[wxperl-users] wxPerl 0.24
Hello, I hope to have it uploaded by tomorrow. It fixes: - A problem when running with PAR on Linux - The crash on bitmap load on Win95 reported by Nick Johnston and a similar (possibly the same) crash when loading a bitmap on WinXP - The problem with Wx::Log::SetTimestamp reported by Johan Vromans - The fact that Wx::Menu::Append should return a Wx::MenuItem with wxWidgets 2.6.x. Just a bugfix release (it will not be available for Mac unless somebody asks for it). Regards Mattia ...

[wxperl-users] wxPerl 0.22
Hello, this release has just some minor improvements over 0.21, mainly for wxWidgets 2.5.3 and Mac OS X users. The reasons for this release are: * FreeBSD support (I have a FreeBSD port for 5.10, I'll send it separately) * Mac OS X binary packages: the ones I distributed until now were broken in various ways. These ones have been tested on a fresh OS X installation (no XCode installed, no updates, nothing). There are bot ANSI and Unicode versions. I haven't updated the WebSite yet, you can download directly from https://sourceforge.net/project/showfiles.php?grou...

[wxperl-users] wxPerl 0.49_01
Hello, this is te first beta release depending on Alien::wxWidgets. You should be able to install wxPerl from CPAN even if wxWidgets is not installed yet (provided you have a compiler, of course): Alien::wxWidgets will ask if you want to build wxWidgets from sources. Regards Mattia Mattia, There are a few files missing from Wx-0.49_01.tar.gz. (I grabbed it off pause) 1. the whole of directory \ext\media 2. \ext\datetime\XS\DateSpan.xsp 3. \ext\datetime\XS\TimeSpan.xsp Once these are added from CVS, the build works fine for me (VC6 , wxWidgets 2.6.3) with &#...

[wxperl-users] wxPerl 0.51
Hi, I have just compiled the new wxPerl with Alien. The question for me is now, which wxWidgets is in use when I start my app. The one under Alien or the one under Wx ? Is the Version String correct with a comma (was a point before) ? And when I try to use Wx::Notebook HitTest, I get an error that the function isn't implemented. But when I check the XS files it is defined there. Did I do something wrong ? Should I have deleted the old wxPerl before compiling ? Systeminfo: Windows XP SP2, Perl 5.8.6, wxWidgets 2.6.3 Thanks for the great work so far and keep it ...

[wxperl-users] [ wxperl-Bugs-449415 ] wxPerl 0.04 warnings in toolbar.pl sampl
Bugs item #449415, was opened at 2001-08-09 01:07 You can respond by visiting: http://sourceforge.net/tracker/?func=detail&atid=115655&aid=449415&group_id=15655 Category: None Group: None Status: Open Resolution: None Priority: 5 Submitted By: Nobody/Anonymous (nobody) Assigned to: Nobody/Anonymous (nobody) Summary: wxPerl 0.04 warnings in toolbar.pl sampl Initial Comment: For all bitmaps in the sample Perl prints these warnings: Argument "bitmaps/print.bmp" isn't numeric in addition (+) at D:/Perl/site/lib/Wx.pm line 147. Use of uninitializ...

[wxperl-users] wxPerl 0.26 problem running demo.pl on Linux
Hi, I've just installed wxPerl 0.26 on a suse 9.2 Linux and can't run the demo.pl. Here some information about my system: Kernel 2.6.8-24 GTK 2.4.9 wxGTK 2.6.2 unicode (tried without unicode as well) looks ok, all the demos and samples running wxPython 2.6.1 no problems so far wxGlade 0.4 no problems so far wxPerl 0.26 without stc, because "make test" failed when compiled with stc samples looking good, although Perl is complaining about two or three uninitialized values. When I try to runn the demo, i get the following output: Pixmap: Invalid pixmap par...

[wxperl-users] wxPerl Wiki => wxPerl Kwiki
Hello all, Once upon a time I installed a Wiki, called it the wxPerl Wiki and didn't look at it anymore. I noticed that only a few people use it, it's been hacked a few times, and to make it work, at least yours truly should put more time and effort in it. This morning I started installing Kwiki, which is a far better Wiki platform than the Wiki that was installed. Apart from the UserPreferences page (working on it), everything works as it should. However, the data people entered in the old Wiki can't be converted to Kwiki automatically. Therefore I need your ...

[wxperl-users] Doc/View Framework
Hi Mattia, I have most of this working now. I'd like to get the wxFileHistory class working and tidy up a bit before I send a patch in. In all likelyhood this probably won't impliment 100% of the framework because I'm somewhat an XS\C++ novice, although I hope to be as close as possible. There's already enough to write an enhanced windows notepad with MDI, which I'll include for the /samples folder. I should be ready to send patch for review towards the end of the week. How do you want that? Simon BBCi at http://www.bbc.co.uk/ This e-mail (and any...

Web resources about - [wxperl-users] changes in doc/view framework of wxPerl 0.26 ? - perl.wxperl.users

O'Reilly Open Source Convention 2007 • July 23-27, 2007 • Portland, Oregon
O'Reilly Open Source Convention 2007 - July 23-27, 2007 - Portland, Oregon

resources last updated: 11/20/2015 2:35:37 PM