Retired Document
Important: This sample code may not represent best practices for current development. The project may use deprecated symbols and illustrate technologies and techniques that are no longer recommended.
LibHeaders/AlertDlogUtils.h
/*======================================================================================== |
File: AlertDlogUtils.c |
By: George Delaney |
Mac CPU Software Quality |
Date: 5/14/90 |
Contents: |
Header declarations for standard Dialog and Alert routines. |
======================================================================================*/ |
/*--------------------------------------------------------------------------------------*/ |
/* Constants */ |
#define OK 1 |
#define CANCEL 2 |
/*--------------------------------------------------------------------------------------*/ |
/* Alert Utils */ |
/*--------------------------------------------------------------------------------------*/ |
/* Alerts */ |
pascal void OKStrAlert (Str255 str1, Str255 str2, Str255 str3, Str255 str4); |
pascal void OKRsrcAlert (short rsrcID, short strIndex); |
/*--------------------------------------------------------------------------------------*/ |
/* Dialog Utils */ |
pascal void GetDlogShort (DialogPtr dptr, short item, short *value); |
pascal void SetDlogShort (DialogPtr dptr, short item, short value); |
pascal void GetDlogLong (DialogPtr dptr, short item, long *value); |
pascal void SetDlogLong (DialogPtr dptr, short item, long value); |
pascal Rect GetDlogRect (DialogPtr dptr, short item); |
pascal void SetDlogCtl (DialogPtr dptr, short item, short value); |
pascal short GetDlogCtl (DialogPtr dptr, short item); |
pascal void FrameDlogButton (DialogPtr dptr, short item); |
pascal void GetDlogItemRect (DialogPtr dptr, short item, Rect *itemRect); |
pascal void FrameDlogItemRect (DialogPtr dptr, short item); |
pascal void SetDlogItemProc (DialogPtr dptr, short item, Ptr procPtr); |
pascal void SetDlogString (DialogPtr dptr, short item, Str255 str); |
/*--------------------------------------------------------------------------------------*/ |
/* Dialogs */ |
Copyright © 2003 Apple Computer, Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2003-10-10