home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #30 / NN_1992_30.iso / spool / comp / sys / mac / hypercar / 4597 < prev    next >
Encoding:
Internet Message Format  |  1992-12-16  |  1.9 KB

  1. Path: sparky!uunet!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!falcon.aamrl.wpafb.af.mil!rlivingston
  2. From: rlivingston@falcon.aamrl.wpafb.af.mil
  3. Newsgroups: comp.sys.mac.hypercard
  4. Subject: Undesireable window refresh after XCMD
  5. Message-ID: <1992Dec16.092209.1873@falcon.aamrl.wpafb.af.mil>
  6. Date: 16 Dec 92 09:22:09 EST
  7. Organization: USAF AL/CFH, WPAFB, Dayton, OH
  8. Lines: 49
  9.  
  10.  
  11. I'm searching for help with a SuperCard/XCMD problem.  My XCMD does some
  12. drawing in the frontmost window which needs to be preserved when the XCMD
  13. returns. 
  14.  
  15. -- In a card button script: 
  16.  
  17. on mouseUp   
  18.    DrawSampleTarget 
  19. end mouseUp 
  20.  
  21. -- In a background script 
  22. on SampleTarget   
  23.   global Vars 
  24.  
  25.   -- Save the vars so that they can be restored   
  26.   put Vars into oldVars 
  27.   
  28.   -- Do some parameter setup (not shown) 
  29.   
  30.   MY_XCMD Vars   -- Call my XCMD which does drawing 
  31.  
  32.   -- Restore the old vars   
  33.   put oldvars into Vars 
  34. end SampleTarget 
  35.  
  36. The XCMD appears to be working correctly.  However, when the end mouseUp
  37. statement is reached, SuperCard refreshes the window and I lose the stuff
  38. which was just drawn by the XCMD.  I've tried trapping for an updateWindow 
  39. message and am receiving one, but trapping for it doesn't prevent the refresh.
  40. Does anybody know how to prevent this refresh?  Is possible to create a 
  41. SuperCard graphic in an XCMD?  This might allow SC to refresh my graphic.  
  42. How?
  43.  
  44. SuperCard 1.6 
  45. MPW C 3.2 
  46. System 7.0 
  47. -- 
  48.  
  49. --------------------------------------------------------------------
  50. Roy Livingston                   RLivingston@Falcon.AAMRL.WPAFB.AF.MIL
  51. Logicon Technical Services       (513) 255-8877 - Lab
  52. P.O. Box 317258                  (513) 255-5165 - Office
  53. Dayton, OH  45431                (513) 255-8778 - Fax
  54.  
  55. "The opinions and views expressed here are strictly my own and do not 
  56. necessarily reflect the official position of either the U.S. Air Force 
  57. or its contractors."
  58.  
  59.