home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #20 / NN_1992_20.iso / spool / comp / sys / mac / programm / 15042 < prev    next >
Encoding:
Text File  |  1992-09-08  |  1.0 KB  |  34 lines

  1. Newsgroups: comp.sys.mac.programmer
  2. Path: sparky!uunet!gatech!willis.cis.uab.edu!utkcs2!utkux1.utk.edu!danny@utkux1.utk.edu
  3. From: danny@utkux1.utk.edu (Danny W. McCampbell)
  4. Subject: DrawGrowIcon...somethings wrong
  5. Message-ID: <1992Sep4.144520.7678@utkux1.utk.edu>
  6. Sender: usenet@utkux1.utk.edu (USENET News System)
  7. Organization: University of Tennessee
  8. Date: Fri, 4 Sep 1992 14:45:20 GMT
  9. Lines: 23
  10.  
  11. activateEvt: 
  12.     begin
  13.      TempLongInt := BitAnd(theEvent.modifiers, $000F);
  14.      if TempLongInt = 1 then
  15.       begin
  16.        HiliteControl(gScrollBarHandle, 0);
  17.        DrawGrowIcon(window);
  18.       end
  19.      else
  20.       begin
  21.        HiliteControl(gScrollBarHandle, 255);
  22.        DrawGrowIcon(window);
  23.       end;
  24.     end;
  25.  
  26. It's me again.  When I use this code to try to hide the DrawGrowIcon
  27. box and show it I get a Bus Error.  From what I understand from
  28. IM Vol I that when I call DrawGrowIcon when the window is inactive it
  29. will draw just the outline and actually hide the grow box.  Why
  30. do I get a bus error here?
  31.  
  32. Danny
  33. danny@utkux1.utk.edu
  34.