Path: utzoo!attcan!uunet!snorkelwacker!apple!sun-barr!cs.utexas.edu!helios!tecmtyvm!pl430331 From: PL430331@tecmtyvm.mty.itesm.mx Newsgroups: comp.sys.mac.programmer Subject: Button Hilite in Modeless Dlog? Message-ID: <90284.150113PL430331@tecmtyvm.mty.itesm.mx> Date: 11 Oct 90 21:01:12 GMT Organization: Instituto Tecnologico y de Est. Sup. de Monterrey - Campus Mty. Lines: 21 Anybody know how hilite the buttons in a modeless dialog when a key is pressed, I do currently: if Key in [13,3] then *Check if it Return of enter* begin GetDItem(TheDialog,OK,TypeItem,ItemHandle,TheBox); * get the rect of button to hilite it * InvertRect(TheBox); *Invert the bits of the Rect * Delay(5, TheCount); *wait a certain amount of time* InvertRect(TheBox); *Invert the bits of the Rect again * ItemHit:=OK; * assign the event of button to the var ItemHit * end; Could be make it of better manner?. THANKS Gabriel Ramirez Garza PL430331@TECMTYVM.MTY.ITESM.MX