MCPcopy Create free account
hub / github.com/NetHack/NetHack / FlashButton

Function FlashButton

outdated/sys/mac/mmodal.c:15–29  ·  view source on GitHub ↗

Flash a dialog button when its accelerator key is pressed */

Source from the content-addressed store, hash-verified

13
14/* Flash a dialog button when its accelerator key is pressed */
15void
16FlashButton(DialogRef wind, short item)
17{
18 short type;
19 Handle handle;
20 Rect rect;
21 unsigned long ticks;
22
23 /* Apple recommends 8 ticks */
24 GetDialogItem(wind, item, &type, &handle, &rect);
25 HiliteControl((ControlHandle) handle, kControlButtonPart);
26 Delay(8, &ticks);
27 HiliteControl((ControlHandle) handle, 0);
28 return;
29}

Callers 1

ask_filterFunction · 0.85

Calls 1

DelayFunction · 0.50

Tested by

no test coverage detected