Path: utzoo!attcan!uunet!snorkelwacker!mit-eddie!uw-beaver!Teknowledge.COM!unix!mxmora From: mxmora@unix.SRI.COM (Matt Mora) Newsgroups: comp.sys.mac.programmer Subject: Re: Can I modify the Text Window title in THINK Pascal? Message-ID: <17036@unix.SRI.COM> Date: 9 Oct 90 17:20:05 GMT References: <1990Oct9.062443.18141@agate.berkeley.edu> <10623@goofy.Apple.COM> Reply-To: mxmora@unix.UUCP (Matt Mora) Organization: SRI International, Menlo Park, CA Lines: 36 In article <10623@goofy.Apple.COM> stevec@Apple.COM (Steve Christensen) writes: >bmyers@garnet.berkeley.edu (Brian Myers) writes: >>The following simple program does not work (in THINK's Lightspeed Pascal): > >Have you thought about initializing theTitle with something. Otherwise, >whatever was in that part of memory when your routine got called would >be used. Stuff like: theTitle:='A Real Title' or theTitle:=GetString(5)^^ >work pretty well... :-) I don't think that is the will help. I believe that THINK Pascal mucks around with the window list (or creates its own) so that the front window command will work even if the front window is the source code or Lightsbug window. For example if you are tracing code execution, if your code calls frontwindow and the source code window is actually in front, frontwindow will return a ptr to your window not the source code window. If I get time I'll look into it. Sorry I dont have an answer. >steve > >-- >~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > whoami? Steve Christensen -- ___________________________________________________________ Matthew Mora | my Mac Matt_Mora@sri.com SRI International | my unix mxmora@unix.sri.com ___________________________________________________________