home *** CD-ROM | disk | FTP | other *** search
- /* AboutDialog.c -- Modal dialog */
- /* Created 01/01/95 12:01 PM by AppMaker */
-
- #include <Types.h>
- #include <Quickdraw.h>
- #include <Controls.h>
- #include <Dialogs.h>
- #include <Events.h>
- #include <Lists.h>
- #include <Menus.h>
- #include <TextEdit.h>
- #include "ResourceDefs.h"
- #include "Miscellany.h"
- #include "DialogAids.h"
- #include "WindowAids.h"
- #include "AboutDialog.h"
-
- #define OKButton 1
- #define AboutLabel 2
-
-
- /*----------*/
- Boolean GetAboutDialog (AboutDialogRec *AboutDialog)
- {
- DialogPtr theDialog;
- GrafPtr savePort;
- Boolean result;
- Boolean done;
- short itemNr;
- register AboutDialogRecPtr info;
- ModalFilterUPP FilterAboutDialogUPP;
-
- GetPort (&savePort);
- InitCursor ();
- theDialog = GetNewDialog (DLOG_AboutDialog, nil, (WindowPtr) -1L);
- SetPort (theDialog);
- info = AboutDialog;
- FilterAboutDialogUPP = NewModalFilterProc (StandardFilter);
-
- ShowWindow (theDialog);
- OutlineButton (1);
- done = false;
- while (!done) {
-
- MovableDialog (FilterAboutDialogUPP, &itemNr);
- switch (itemNr) {
- case OKButton:
- result = true;
- done = true;
- break;
-
- } /* switch */
- } /* while */
- DisposeRoutineDescriptor ((UniversalProcPtr) FilterAboutDialogUPP);
-
- DisposDialog (theDialog);
- SetPort (savePort);
- return (result);
- } /*GetAboutDialog*/
-
- /* AboutDialog */
-