[net.micro.mac] hints on DEF routines

DMB@PSUVMA.BITNET (10/31/86)

   This has happened to me so i'll assume it may happen to you.

      You want to write a WDEF,MDEF,CDEF, etc. and so you go to IM and find
that you have to write a bunch of different routines based on the message
passed to you. Fine says you, and so you start right away writing the WDRAW
routine, as this seems the clearest and easiest to do.
      When you finish the WDRAW routine, You compile it, (not an easy task
sometimes) making sure you have the 16*the resource and then with fingers
crossed, you run a demo that uses the DEFinition routine that you wrote.
      Boooooooo. Nothing happened. Why??????????
      Before you let the question marks run into eternity, and never try
DEF's again, don't forget this. It is MANDATORY that you write the calcrgn
routine before the DEF will work, because the DEF needs to know the size
of the object inorder to display it.

Good Luck


                             dave