Mailing Lists: Apple Mailing Lists
Image of Mac OS face in stamp
Simulating a click in a button
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Simulating a click in a button



I have one particular custom button added to a Nav Services window that I need to use a key equiv with. What I can't figure out is how to cause the button to flash or simulate a click like we used to be able to do with:

HiliteControl(c, 1);
delay
HiliteControl(c, 0);

I even tried flushing the window buffer between the two HiliteControl's. Searching around for something hopefully more modern, I found HIViewSimulateClick. Either it doesn't work, or I'm giving it the wrong part codes. I tried kControlIndicatorPart and kControlEntireControl. What part code should I use?

_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
email@hidden                       www.multi-ad.com


_______________________________________________ Do not post admin requests to the list. They will be ignored. Carbon-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden


Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2011 Apple Inc. All rights reserved.