* Update Mac port to new options system. * Update Mac-specific documentation. * Remove hardcoded version strings. * Remove obsolete popup_dialog.
26 lines
651 B
C
26 lines
651 B
C
/* SCCS Id: @(#)mmodal.c 3.1 93/01/24 */
|
|
/* Copyright (c) Jon W{tte, Hao-Yang Wang, Jonathan Handler 1992. */
|
|
/* NetHack may be freely redistributed. See license for details. */
|
|
|
|
#include <Dialogs.h>
|
|
#include "macpopup.h"
|
|
#include <ControlDefinitions.h>
|
|
|
|
/* Flash a dialog button when its accelerator key is pressed */
|
|
void
|
|
FlashButton (WindowPtr wind, short item) {
|
|
short type;
|
|
Handle handle;
|
|
Rect rect;
|
|
unsigned long ticks;
|
|
|
|
/* Apple recommends 8 ticks */
|
|
GetDialogItem(wind, item, &type, &handle, &rect);
|
|
HiliteControl((ControlHandle)handle, kControlButtonPart);
|
|
Delay(8, &ticks);
|
|
HiliteControl((ControlHandle)handle, 0);
|
|
return;
|
|
}
|
|
|
|
|