home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!haven.umd.edu!darwin.sura.net!spool.mu.edu!hri.com!noc.near.net!bigboote.WPI.EDU!bigwpi.WPI.EDU!macman
- From: macman@bigwpi.WPI.EDU (Chris Silverberg)
- Newsgroups: comp.sys.mac.programmer
- Subject: Help with dialog bug
- Message-ID: <1dkg94INN9t0@bigboote.WPI.EDU>
- Date: 9 Nov 92 01:52:36 GMT
- Organization: Worcester Polytechnic Institute
- Lines: 36
- NNTP-Posting-Host: bigwpi.wpi.edu
-
- Hello all.
-
- I was wondering if someone might have experienced a bug that
- I apparently have in a program.... my program has two dialog
- boxes that it uses, the first being a modeless dialog that comes
- up when the program is launched. The second is a modal dialog
- that displays the information when the user chooses "About...".
-
- When I start up the program, and I choose "About...", my second
- dialog box comes up fine. It has one item, a PICT that has a
- picture. It also has a filter proc so that the first mousedown
- that occurs in the window closes it. My about routine allocates
- and deallocates this dialog each time.
-
- Now, that all works fine. But if at any time after that I move
- my modeless dialog (which is done by a DragWindow call in my
- event loop), and at ANY time AFTER that, when I bring up my
- About box, the PICT that is in there is slightly offscreen on
- the top. Somehow, the PICT just moved about 20 or 30 pixels UP!!
-
- What I've found is that it moves up when DragWindow is called.
- As long as I never move that first window, the about dialog will
- be fine. But once it is moved, (or just clicked on for that
- matter), the About box is messed up.
-
- I figure that possibly this might be something obscure, but I
- thought that perhaps someone else has seen a similar occurance?
-
- Thanks much.
- - Chris
-
-
- =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
- Chris Silverberg INTERNET: macman@wpi.wpi.edu
- Worcester Polytechnic Institute WMUG BBS 508-832-5844 (TeleFinder)
- America Online: TfChris FIDONET: 1:322/115.1
-