home *** CD-ROM | disk | FTP | other *** search
- /* OutlineButton.c
- * Draw default outline around buttons. Very handy library utility.
- * ©1992 Working Software, Inc.
- * This source code is copyrighted. Permission is granted to use the Word Services
- * portion of the Writeswell Jr. source code in your own programs, but you
- * may not distribute the Writeswell Jr. word-processor code as a
- * commercial product. If you modify the code, please do not call it
- * Writeswell Jr. (or Writeswell.) This will ensure that people understand the
- * program and don’t have to deal with a number of different versions with
- * who-knows-what going on in the code.
- *
- * Writeswell Jr. and Writeswell are trademarks of Working Software, Inc.
- *
- * 19 May 92 Mike Crawford
- */
-
- #include "OutlineButton.h"
-
- pascal void OutlineButton( DialogPtr dPtr, short item )
- {
- Handle itemH;
- Rect r;
- short kind;
- PenState pS;
-
- /* Outline a button to indicate that it is the default */
-
- GetPenState( &pS );
- PenNormal();
- PenSize( 3, 3 );
-
- GetDItem( dPtr, item, &kind, &itemH, &r );
-
- FrameRoundRect( &r, 16, 16 );
-
- SetPenState( &pS );
-
- return;
- }
-