Source/AboutBox.c

/*
    File:       AboutBox.c
 
    Contains:   xxx put contents here xxx
 
    Version:    xxx put version here xxx
 
    Copyright:  © 1999 by Apple Computer, Inc., all rights reserved.
 
    File Ownership:
 
        DRI:                xxx put dri here xxx
 
        Other Contact:      xxx put other contact here xxx
 
        Technology:         xxx put technology here xxx
 
    Writers:
 
        (BWS)   Brent Schorsch
 
    Change History (most recent first):
 
       <SP1>      7/1/99    BWS     first checked in
*/
 
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ    Includes
 
#include <Dialogs.h>
#include <TextUtils.h>
 
#include "AboutBox.h"
#include "AppShellResources.h"
 
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ    Private Definitions
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ    Private Types
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ    Private Variables
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ    Private Functions
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ    Public Variables
 
//¥ ÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑÑ    AboutBox
 
void
AboutBox(void)
{
Str255                  title, copyright;
SInt16                  itemHit;
AlertStdAlertParamRec   pb;
 
    GetIndString(title, kSTRn_AboutBoxStrings, 1);
    GetIndString(copyright, kSTRn_AboutBoxStrings, 2);
 
    pb.movable = false;
    pb.helpButton = false;
    pb.filterProc = nil;
    pb.defaultText = (StringPtr) kAlertDefaultOKText;
    pb.cancelText = nil;
    pb.otherText = nil;
    pb.defaultButton = kStdOkItemIndex;
    pb.cancelButton = kStdCancelItemIndex;
    pb.position = kWindowAlertPositionParentWindowScreen;
 
    StandardAlert(kAlertPlainAlert, title, copyright, &pb, &itemHit);
}