Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!wuarchive!gem.mps.ohio-state.edu!uakari.primate.wisc.edu!uwm.edu!uwvax!umn-d-ub!umn-cs!bungia!orbit!pnet51!dougm From: dougm@pnet51.orb.mn.org (Doug Mcintyre) Newsgroups: comp.sys.apple Subject: CDEV problem.. Message-ID: <1207@orbit.UUCP> Date: 3 Oct 89 15:05:32 GMT Sender: root@orbit.UUCP Organization: People-Net [pnet51], Minneapolis, MN. Lines: 28 I'm having a problem with my little CDEV that I've written.. The particular problem I'm having is with Hilit ing an Icon button.. Here is my Orca/C code.. (Note, since I am doing a CDEV from C, the only thing that doesn't get set right is the databank register, so I can't use globals..) voiddo_hit(ctlHndl,ctrlID) CtlRecHndl ctlHndl; long ctrlID; { static int temp=0; temp = 1-temp; if (ctrlID == 2) HiliteControl(temp,ctlHndl); } ctrlID is an Icon button, and it is a resource drawn with NewControl2(), The 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? I've tested the static binary switch, out of this context and it seems to be working ok there.. but not in this particular code.. UUCP: {rosevax, crash}!orbit!pnet51!dougm Compuserve: 70611,2215 ARPA: crash!orbit!pnet51!dougm@nosc.mil ALPE: DougMac INET: dougm@pnet51.cts.com GENIE: D.MCINTYRE1