Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!wuarchive!zaphod.mps.ohio-state.edu!mips!smsc.sony.com!dce From: dce@smsc.sony.com (David Elliott) Newsgroups: comp.sys.mac.hypercard Subject: Repainting "special" controls Message-ID: <1990Jan5.065628.7378@smsc.sony.com> Date: 5 Jan 90 06:56:28 GMT Reply-To: dce@smsc.Sony.COM (David Elliott) Organization: Sony Microsystems Corp. Lines: 18 I'm using Lloyd Maxfield's barbutton xcmd from the Developer Stack. This is a nice control, but whenever HyperCard repaints (after editing a script or even holding down command and option to show the button outlines), the control is not repainted. I notice similar happenings with the Color stack. For now, I added a card idle handler that redraws these controls every 100 ticks. Is this a reasonable way to go? I mean, it looks fine, though you can sometimes see the numbers under the controls flash. Is there an undocumented system message that is sent to a card when it is redrawn so that handlers can be set up to redraw things? Or, is there an XCMD that implements a slider that gets redrawn properly? -- David Elliott dce@smsc.sony.com | ...!{uunet,mips}!sonyusa!dce (408)944-4073 "But Pee Wee... I don't wanna be the baby!"