[comp.sys.mac.programmer] UserItem in Dialog

djvelleman@amherst.bitnet (10/09/90)

  According to IM I, p. 405, when the procedure which draws a user item in a
dialog box is called, the current port will already be set to the dialog
window's grafport.  But I have a user item for which this doesn't seem to be
true.  It's not a serious problem, since inserting a call to SetPort at the
beginning of the procedure fixes things, but I'm just curious if this is a
bug in the Dialog Manager or what.
  I should mention that I discovered this problem in the Think Pascal debugging
environment, so maybe it's a Think Pascal problem and not a Dialog Manager
problem.  I have other user items that work fine in the Think Pascal
environment, but one of them consistently bombs without the extra SetPort.
  Anyone else ever come across anything like this?
  Dan Velleman
  Math Dept.
  Amherst College