home *** CD-ROM | disk | FTP | other *** search
- /************************************************************************************/
- /* HelpDrawProc */
- /* This routine should be invoked between a BeginUpdate and EndUpdate sequence, */
- /* usually after an Update event in the main event loop. */
- /************************************************************************************/
-
- #include "HelpDrawProc.h"
- #ifndef __C14__
- #include "C14 Calculator.h"
- #endif
- #include "myActionProc.h"
-
- void HelpDrawSeg() {} /* for reference in "UnloadSeg()" calls */
-
- short HelpDrawProc ()
- {
- int HelpDrawRetCode = 0;
-
- SetPort (windTbl[1].windPtr); /* set as the grafPort */
-
- myActionProc (windTbl[1].windCntlH[0], 0);
-
- DrawControls (windTbl[1].windPtr); /* draw un-hidden controls */
- FrameRect (&(**windTbl[1].windCntlH[0]).contrlRect); /* frame the hidden one */
-
-
- TEUpdate (&(**windTbl[1].windTEH[0]).viewRect,
- windTbl[1].windTEH[0]);
-
- LUpdate ((*(**helpList).port).visRgn, helpList);
-
- workRect = (**windTbl[1].windTEH[0]).viewRect;
- InsetRect (&workRect, -1, -1);
- FrameRect (&workRect);
-
- workRect = (**helpList).rView;
- InsetRect (&workRect, -1, -1);
- FrameRect (&workRect);
-
- workRect.bottom = workRect.top;
- workRect.top = workRect.bottom -20;
- workRect.right += 16;
- TextFont(geneva);
- TextFace(bold);
- TextSize(12);
- TextBox ("Table of Contents", 17, &workRect, teJustCenter);
- TextFont(monaco);
- TextFace(NIL);
- TextSize(9);
-
- return HelpDrawRetCode;
- }
-