> On Jun 8, 2017, at 5:48 PM, James Walker <li...@jwwalker.com> wrote:
> 
> Is there any way to get the control behavior of a button, e.g., some 
> GetControlData call?  In particular, I want to know whether a bevel button 
> with a menu attached has the kControlBehaviorCommandMenu bit set.

I don’t see any code in the bevel button class for reporting out the control 
behavior.

Your one option, rather a kludge but I think it would work if you’re desperate, 
would be to use accessibility API to ask the button for its accessibility role. 
If the role is kAXMenuButtonRole, then you have a button with 
kControlBehaviorCommandMenu.

-eric

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Carbon-dev mailing list      (Carbon-dev@lists.apple.com)
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/carbon-dev/archive%40mail-archive.com

This email sent to arch...@mail-archive.com

Reply via email to