home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / sys / mac / programm / 18159 < prev    next >
Encoding:
Internet Message Format  |  1992-11-09  |  2.0 KB

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