home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cis.ohio-state.edu!udecc.engr.udayton.edu!blackbird.afit.af.mil!falcon.aamrl.wpafb.af.mil!rlivingston
- From: rlivingston@falcon.aamrl.wpafb.af.mil
- Newsgroups: comp.sys.mac.hypercard
- Subject: Undesireable window refresh after XCMD
- Message-ID: <1992Dec16.092209.1873@falcon.aamrl.wpafb.af.mil>
- Date: 16 Dec 92 09:22:09 EST
- Organization: USAF AL/CFH, WPAFB, Dayton, OH
- Lines: 49
-
-
- I'm searching for help with a SuperCard/XCMD problem. My XCMD does some
- drawing in the frontmost window which needs to be preserved when the XCMD
- returns.
-
- -- In a card button script:
-
- on mouseUp
- DrawSampleTarget
- end mouseUp
-
- -- In a background script
- on SampleTarget
- global Vars
-
- -- Save the vars so that they can be restored
- put Vars into oldVars
-
- -- Do some parameter setup (not shown)
-
- MY_XCMD Vars -- Call my XCMD which does drawing
-
- -- Restore the old vars
- put oldvars into Vars
- end SampleTarget
-
- The XCMD appears to be working correctly. However, when the end mouseUp
- statement is reached, SuperCard refreshes the window and I lose the stuff
- which was just drawn by the XCMD. I've tried trapping for an updateWindow
- message and am receiving one, but trapping for it doesn't prevent the refresh.
- Does anybody know how to prevent this refresh? Is possible to create a
- SuperCard graphic in an XCMD? This might allow SC to refresh my graphic.
- How?
-
- SuperCard 1.6
- MPW C 3.2
- System 7.0
- --
-
- --------------------------------------------------------------------
- Roy Livingston RLivingston@Falcon.AAMRL.WPAFB.AF.MIL
- Logicon Technical Services (513) 255-8877 - Lab
- P.O. Box 317258 (513) 255-5165 - Office
- Dayton, OH 45431 (513) 255-8778 - Fax
-
- "The opinions and views expressed here are strictly my own and do not
- necessarily reflect the official position of either the U.S. Air Force
- or its contractors."
-
-