home *** CD-ROM | disk | FTP | other *** search
-
- /*
- * drawscroll.c -- move and size the scrollbars for this window
- */
-
- #include <quickdraw.h>
- #include <control.h>
- #include <window.h>
-
- #include "def.h"
-
- void
- drawscroll(i)
- short i;
- {
- extern ControlHandle hscroll[NWINDOWS];
- extern ControlHandle vscroll[NWINDOWS];
- extern WindowPtr wp[NWINDOWS];
-
- HideControl(vscroll[i]);
- MoveControl(vscroll[i], (short)(wp[i]->portRect.right - 15), -1);
- SizeControl(vscroll[i], 16, (short)(wp[i]->portRect.bottom - 13));
- ShowControl(vscroll[i]);
- HideControl(hscroll[i]);
- MoveControl(hscroll[i], -1, (short)(wp[i]->portRect.bottom - 15));
- SizeControl(hscroll[i], (short)(wp[i]->portRect.right - 13), 16);
- ShowControl(hscroll[i]);
- } /* end of drawscroll() */
-