If you simply Hide() a window instead of reconstructing it each time, it should always keep the last position. Also should take less memory. That said, this little script should give you the info you're looking for.
You should be able to search the mailing list on activestate.com -Pete use Win32::GUI; my $w = new Win32::GUI::Window( -name => 'Window', -left => 100, -top => 100, -height => 100, -width => 100 ); my $b = $w->AddButton( -name => "Button", -text => "Click here", -left => 20, -top => 20, ); $w->Show(); Win32::GUI::Dialog(); sub Button_Click { my $l = $w->{-left}; my $t = $w->{-top}; $w->Button->Text("$l,$t"); } sub Window_Terminate { return -1; } > -----Original Message----- > From: Hoff Miller [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 28, 2004 10:47 PM > To: perl-win32-gui-users@lists.sourceforge.net > Subject: [perl-win32-gui-users] Window position > > > It is not clear how to identify the position of a window so as to > remember where to open it the next time it is launched. > > Also, > > Is there a searchable mailing list archive? > > TIA > > > > > > ------------------------------------------------------- > The SF.Net email is sponsored by EclipseCon 2004 > Premiere Conference on Open Tools Development and Integration > See the breadth of Eclipse activity. February 3-5 in Anaheim, CA. > http://www.eclipsecon.org/osdn > _______________________________________________ > Perl-Win32-GUI-Users mailing list > Perl-Win32-GUI-Users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/perl-win32-gui-users >