home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #16 / NN_1992_16.iso / spool / comp / sys / mac / programm / 12820 < prev    next >
Encoding:
Text File  |  1992-07-21  |  1.8 KB  |  55 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!mcsun!ub4b!info-sparc1.info.ucl.ac.be!NewsWatcher
  3. From: Meessen@slig.ucl.ac.be  (Christophe Meessen)
  4. Subject: Re: Q: DrawString only draws 8 characters of my string
  5. Message-ID: <Meessen-220792090830@130.104.58.7>
  6. Followup-To: comp.sys.mac.programmer
  7. Sender: news@info.ucl.ac.be (News Administrator)
  8. Nntp-Posting-Host: 130.104.58.7
  9. Organization: Universite Catholique de Louvain (Belgium)
  10. References: <Brp1GF.4Dt@news.cso.uiuc.edu> <NEERI.92Jul20230142@iis.ethz.ch> <NEERI.92Jul21135202@iis.ethz.ch>
  11. Date: Wed, 22 Jul 1992 07:34:51 GMT
  12. Lines: 41
  13.  
  14. In article <NEERI.92Jul21135202@iis.ethz.ch>, neeri@iis.ethz.ch (Matthias
  15. Neeracher) wrote:
  16. ...
  17. > - 'STR ' resources are stored as handles to *Pascal* strings, which means
  18. >   you should use "DrawString(*theString);"
  19.  
  20. Woops ! Your perfectly right Matthias, I missed that one. 
  21.  
  22.  
  23. > - While it is unnecessary to *detach* the resource, it is *essential* to lock
  24. >   it with "HLock((Handle) theString);" before drawing.
  25.  
  26. Hehem, thats also very true. 
  27.  
  28. DrawString is one of the Routines that may move or purge memory. It is
  29. indeed essential to lock the handle and make shure it's unpurgeable. This
  30. should be the case if you didn't set the purgeable option in the info box
  31. of the 'STR ' resource. 
  32.  
  33. >
  34. ...
  35. > Matthias
  36. > -----
  37. > Matthias Neeracher                                   neeri@iis.ethz.ch
  38. >    "No, what he didn't like about heroes was that they were usually
  39. >     suicidally gloomy when sober and homicidally insane when drunk."
  40. >                           -- Terry Pratchett, _The Colour of Magic_
  41.  
  42. Thanks Matthias. Sorry everyone for these misleading informations. 
  43.  
  44.  
  45. Bien cordialement,
  46.  
  47.                            Christophe MEESSEN
  48.  
  49. PS: I'm writing this from under my desk. 
  50.     Try it, it's not that easy.
  51.