Hi.

I've got a program using an MDIClient with the -windowmenu option, and
it's acting strangely under 1.04 and 1.05 (I've downgraded to 1.03 and
it's now behaving perfectly normally).

What's happening is that any time I create a 10th MDIChild window
(causing the "More windows" menu item to be created in my Window
menu), a seemingly random menu item under my File menu gets changed to
match the new entry in the Window menu.  The Window menu item is
created perfectly fine when this happens, so it doesn't look like it's
a case of trying to add the menu item to the wrong menu.  Even more
oddly, the changed item in the File menu continues to perform it's
normal onClick function; only the text is changed.

Rather frustratingly, the MDI.pl example script is still working
perfectly fine under 1.04 and 1.05, even though I can't find any
difference between how I'm creating an MDIChild and how the example is
doing it.

I'm creating the MDIClient with:

my $mdi = $mw->AddMDIClient(
                            -size => [EMAIL PROTECTED],
                            -name => "Client",
                            -firstchild => 100,
                            -windowmenu => $menu->{Window}->{-handle},
                           );
(where $mw is an MDIFrame)

and the MDIChildren with:

my $w = $mw->{Client}->AddMDIChild (
                                      -name => $sid,
                                      -text => $sid,
                                      -size =>[400,300],
                                      -minsize => [300,200],
                                      -onTerminate => \&closeChild,
                                      -onResize => \&childResize,
                                      -hasminimize =>0,
                                     );


(I'll spare you the rest of the 1400 line script for the moment)

Has anyone else seen anything like this, or have any idea how to work
around it?  The odd thing is that in browsing the CVS history, it
doesn't look like there were any changes to any source files that
reference MDI stuff since well before the 1.03 release.  I'm wondering
if it's a difference between using ActiveState's 1.03 PPM and the PPMs
for the 2 new versions from SourceForge.

--
Geoffrey Spear
http://www.geoffreyspear.com/

Reply via email to