ADC Home > Reference Library > Technical Q&As > Carbon > Human Interface Toolbox >

Not Recommended Documentclose button

Important: The information in this document is Not Recommended and should not be used for new development.

Current information on this Reference Library topic can be found here:

Setting a Control's Variant Field

Q: Given that there is no SetControlVariant, what is the proper method to set a control's variant field?

A: None. There is no good way to set a control's variant; standard controls do not support dynamic variants. If you need to change the variant of a custom control after creating the control, it's better not to use variants at all. Instead, let the clients of your control call SetControlData to change the behavior and/or appearance of your control.

[May 03 1999]

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.