ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> pythoncard
pythoncard
RE: [Pythoncard-users] Bug? My "Position & Size" window has gone AWOL
by Kevin Altis other posts by this author
May 6 2002 5:50PM messages near this date
[Pythoncard-users] Bug? My "Position & Size" window has gone AWOL | [Pythoncard-users] added style editor to codeEditor and shell
Good timing. Dan found this bug over the weekend. The quick fix is to delete
the user.config.txt file in your resourceEditor directory. There is nothing
wrong with your installation, it is simply due to my saveConfig method
trying to be smarter than wxPython was allowing it to be ;-)

The bug is that if a window is minimized the underlying wxPython GetPosition
and GetSize methods return bogus numbers, (-32000, -32000) for position. I
was saving that in the user.config.txt file and then the next time you start
the resourceEditor it attempts to restore the last window positions you were
using which of course are off the screen.

The bug also impacts codeEditor (more on that sample today), findfiles, and
textEditor. I think it is fixed in cvs yesterday, but I only tested it on
Windows and OS X.

What happens now is whenever a window is minimized, before the minimize I
saw the current position and size and then two new Background methods
GetRestoredPosition and GetRestoredSize are used on exit to get valid values
depending on whether the window is currently minimized or not.

ka

>  From: Simon Willison
> 
>  I'm having a strange problem with the resource editor (running on win98).
>  The Position & Size window has vanished - it's still shown in my taskbar
>  but it isn't anywhere on my desktop. I tried increasing my resolution to
>  see if I'd inadvertently dragged it off screen but with no luck - however
>  if I right-click on the icon in the Windows taskbar and select "move" my
>  mouse pointer jumps to the bottom right hand corner of the screen which
>  suggests it's over there somewhere out of reach.
> 
>  The first time this happened I reinstalled PythonCard in a different
>  directory (I have Python 2.1 and 2.2 installed so I had two
>  possible places
>  to put it) which fixed the problem temporarily, but now it's
>  happened again.
> 
>  Any ideas why this is happening? Also is there a way of getting
>  the window
>  back in windows (I don't mind diving in to the registry if I have
>  to but I
>  don't know where to start looking...)
> 
>  Cheers,
> 
>  Simon Willison


_______________________________________________________________

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: bandwidth@[...].net
_______________________________________________
Pythoncard-users mailing list
Pythoncard-users@[...].net
https://lists.sourceforge.net/lists/listinfo/pythoncard-users
Thread:
Simon Willison
Kevin Altis

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved