in reply to Re: wxPreviewFrame error on closing
in thread wxPreviewFrame error on closing
Hi Anon,
Well, I've followed through some of your links. The first thing I noticed was that wxPreviewFrame::OnCloseWindow isn't wrapped for wxPerl (or at least it doesn't seem to be. A fact not noted in the documentation. So I created my own version:
sub on_click_richtext_preview_close { my($self,$event) = @_; $self->Destroy; }
And called it with:
Wx::Event::EVT_CLOSE( $frame , \&on_click_richtext_preview_close ) +;
just before the initialise. It Seems to work, but the main frame, to which it is returned, is disabled (in my version of the code). Can I just enable it, or is that too easy?
Regards
Steve
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: wxPreviewFrame error on closing
by Anonymous Monk on Sep 09, 2010 at 01:39 UTC | |
by Steve_BZ (Chaplain) on Sep 09, 2010 at 18:16 UTC | |
by Anonymous Monk on Sep 09, 2010 at 20:43 UTC |