Path: utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!usc!apple!dlyons From: dlyons@Apple.COM (David Lyons) Newsgroups: comp.sys.apple Subject: Re: CDEV problem.. Message-ID: <35267@apple.Apple.COM> Date: 4 Oct 89 18:00:33 GMT References: <1207@orbit.UUCP> Organization: Apple Computer Inc, Cupertino, CA Lines: 31 In article <1207@orbit.UUCP> dougm@pnet51.orb.mn.org (Doug Mcintyre) writes: >[...] >void do_hit(ctlHndl,ctrlID) >CtlRecHndl ctlHndl; >long ctrlID; >{ > static int temp=0; > temp = 1-temp; > if (ctrlID == 2) > HiliteControl(temp,ctlHndl); >} [...] >problem I'm having is that once I hit the button, it stays on for good... >Should I assume this is yet another bug of Orca/C producing bad code, or is >there something weird with the toolbox, that it can't flash a hilited button? Technically, you should be using 14 ($E) as the part code for hiliting an Icon button (since that's what FindControl returns), but that's not your immediate problem (any nonzero value seems to hilite it for me). You might check whether ORCA/C is accidentally initializing temp to 0 every time your procedure gets called...it's a tempting explanation. -- --Dave Lyons, Apple Computer, Inc. | DAL Systems AppleLink--Apple Edition: DAVE.LYONS | P.O. Box 875 America Online: Dave Lyons | Cupertino, CA 95015-0875 GEnie: D.LYONS2 or DAVE.LYONS CompuServe: 72177,3233 Internet/BITNET: dlyons@apple.com UUCP: ...!ames!apple!dlyons My opinions are my own, not Apple's.