home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.mac.programmer
- Path: sparky!uunet!mcsun!ub4b!info-sparc1.info.ucl.ac.be!NewsWatcher
- From: Meessen@slig.ucl.ac.be (Christophe Meessen)
- Subject: Re: Q: DrawString only draws 8 characters of my string
- Message-ID: <Meessen-220792090830@130.104.58.7>
- Followup-To: comp.sys.mac.programmer
- Sender: news@info.ucl.ac.be (News Administrator)
- Nntp-Posting-Host: 130.104.58.7
- Organization: Universite Catholique de Louvain (Belgium)
- References: <Brp1GF.4Dt@news.cso.uiuc.edu> <NEERI.92Jul20230142@iis.ethz.ch> <NEERI.92Jul21135202@iis.ethz.ch>
- Date: Wed, 22 Jul 1992 07:34:51 GMT
- Lines: 41
-
- In article <NEERI.92Jul21135202@iis.ethz.ch>, neeri@iis.ethz.ch (Matthias
- Neeracher) wrote:
- >
- ...
- >
- > - 'STR ' resources are stored as handles to *Pascal* strings, which means
- > you should use "DrawString(*theString);"
-
- Woops ! Your perfectly right Matthias, I missed that one.
-
-
- > - While it is unnecessary to *detach* the resource, it is *essential* to lock
- > it with "HLock((Handle) theString);" before drawing.
-
- Hehem, thats also very true.
-
- DrawString is one of the Routines that may move or purge memory. It is
- indeed essential to lock the handle and make shure it's unpurgeable. This
- should be the case if you didn't set the purgeable option in the info box
- of the 'STR ' resource.
-
- >
- ...
- >
- > Matthias
- >
- > -----
- > Matthias Neeracher neeri@iis.ethz.ch
- > "No, what he didn't like about heroes was that they were usually
- > suicidally gloomy when sober and homicidally insane when drunk."
- > -- Terry Pratchett, _The Colour of Magic_
-
- Thanks Matthias. Sorry everyone for these misleading informations.
-
-
- Bien cordialement,
-
- Christophe MEESSEN
-
- PS: I'm writing this from under my desk.
- Try it, it's not that easy.
-