On Tue, 30 Sep 2003 23:12:16 -0700 (PDT), DH wrote
> > I'm having another problem since version 0.16 in that controls inside
> > Wx::DocMDIChildFrames aren't repainted unless I resize the childframe.
Might
> > be a problem in my code, especially since I'm having problems creating a
> > minimal demo of the problem. Will keep you posted on that.
>
> You wouldn't happen to have wxTRANSPARENT_WINDOW in there?
No. I did have a 'use Wx "wxTRANSPARENT"' in there for no apparent reason.
I'll try and get a small sample that demonstrates the problem.
Thanks
Simon

On Wed, 1 Oct 2003 13:55:41 +0200 Mattia Barbon wrote
> Il Tue, 30 Sep 2003 18:35:37 +0100 Simon Flack <sf@...> ha scritto:
> > The macro used for Wx::DocManager::MakeDefaultName in the current
> > version
> > doesn't work.
> Sorry, fixed in CVS.
Thanks.
[snip]
> > I'm happy for MakeDefaultName() to work the same as it does
> > in wxWindows if you can get it to work. i.e.:
>...
> While I can get it to work, it'd be inconsistent with the rest of wxPerl.
> What about this note in MakeDefaultName and GetPrintableName?
I agree. It's not very perl-ish anyway.
> \perlnote{In wxPerl this function must return the modified name
> rather than just modifying the argument.}
>
> Suggestions for a better wording are really appreciated.
I think that's fine.
> > I'm having another problem since version 0.16 in that controls
> > inside
> > Wx::DocMDIChildFrames aren't repainted unless I resize the
> > childframe. Might
> > be a problem in my code, especially since I'm having problems
> > creating a
> > minimal demo of the problem. Will keep you posted on that.
> Might it be a change in wxWindows? Are you using the binaries I provide
> or are you compiling wxPerl/wxWindows yourself?
Yes, I compiled wxPerl/wxWindows myself. I was wrong - it's not a change
between 0.15 and 0.16 - I backported the docview changes in 0.16 & 0.17 to
0.15 and tested my application with that hybrid version and it's still a
problem.
It might be something to do with some trickery I'm working on document/view.
I have Wx::DocMDIChildFrames with a Wx::Notebook where each NotebookPage
hosts a different Wx::View of the same document.
I could try wxWindows 2.5.x but I'd like to work it down to some small sample
code that demonstrates the problem. In the meantime I've added some
OnActivateView() events to force a Refresh() on the contents of the current
selected NotebookPage - which does a good job of minimising the problem.
Thanks
Simon
--simonflk

> Got it. It was a nasty error in Socket.pm with the bad habit of =
working most of
> the time (by luck). Change line 55 of Socket.pm from
> $handler->Connect( <stuff>
> to
> $handler->Connect( $sock->{_WXEVT}{ID} , -1 , &Wx::wxEVT_SOCKET ,
>=20
> > event macro line in place as well, ie have both macros there, then
> > the MyHnd sub seems to start working...! I'm not sure if it runs
> > both subs though, it seems at first sight to only run the MyHnd
> > one...
>=20
> Thanks for your patience!
> Mattia
Thankyou SO, SO MUCH! I will try this out immediately, but this has =
been driving me absolutely nuts.=20
I now have just one more really annoying issue to sort out which is that =
using wxExecuteArgs to start another perl process works fine (and =
keeping a reference to the wxProcess instance in a variable). However, =
calling wxProcess::Kill with the pid I got earlier is causing a GPF =
under win32 (activestate perl 5.6.1 on XP).
I'm not quite sure if there is some sample code to use this anyway, but =
if there are no "known" issues with kill then I will post my sample for =
scruitiny. =20
To be honest the problem is simply to bring up a second perl prog which =
does some work and have it close down silently when the GUI process is =
terminated. Perhaps it would be better/simpler to look at threads under =
5.8 and spawn the other process that way...
Thanks Mattia!
Ed W

Il Tue, 30 Sep 2003 18:35:37 +0100 Simon Flack <sf@...> ha scritto:
Hello,
> Here's the cvsweb diff of the change in question:
> http://makeashorterlink.com/?U1CA41E06
>
> The macro used for Wx::DocManager::MakeDefaultName in the current
> version
> doesn't work.
Sorry, fixed in CVS.
> MakeDefaultName() in perl differs from the C++
> implimentation
> in that it returns the filename rather than modifying the arg
> passed in. I'm
> happy for MakeDefaultName() to work the same as it does in
> wxWindows if you
> can get it to work. i.e.:
> my $i = 0;
> sub MyDocManager::MakeDefaultName {
> my $self = shift;
> $_[0] = 'myname' . ++$i;
> }
>
> as opposed to pre-0.16:
> my $i = 0;
> sub MyDocManager::MakeDefaultName {
> my $self = shift;
> return 'myname' . ++$i;
> }
While I can get it to work, it'd be inconsistent with the rest of wxPerl.
What about this note in MakeDefaultName and GetPrintableName?
\perlnote{In wxPerl this function must return the modified name rather
than just modifying the argument.}
Suggestions for a better wording are really appreciated.
> I'm having another problem since version 0.16 in that controls
> inside
> Wx::DocMDIChildFrames aren't repainted unless I resize the
> childframe. Might
> be a problem in my code, especially since I'm having problems
> creating a
> minimal demo of the problem. Will keep you posted on that.
Might it be a change in wxWindows? Are you using the binaries I provide
or are you compiling wxPerl/wxWindows yourself?
Thanks!
Mattia

Il Tue, 30 Sep 2003 12:25:05 +0200 Huub Peters <huub@...> ha scritto
Hello,
> I need to write my own drawing program.
> Looking at the Printing demo I know I'll manage to create
> exactly what I want except for a zooming option.
>
> At the moment I have no idea how to zoom the canvas.
> Preferably only the display without refreshing/redrawing the whole
> window.
There is no way to do it automatically; you just redraw the whole
window scaling the coordinates for drawing commands.
Regards
Mattia

> I'm having another problem since version 0.16 in that controls inside
> Wx::DocMDIChildFrames aren't repainted unless I resize the childframe. Might
> be a problem in my code, especially since I'm having problems creating a
> minimal demo of the problem. Will keep you posted on that.
You wouldn't happen to have wxTRANSPARENT_WINDOW in there?
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com