ADC Home > Reference Library > Technical Q&As > Carbon > Human Interface Toolbox >
|
Q: What is the minimal set of Carbon Events I need to override in order to implement a simple custom push button? A:
In order to implement a simple custom push button, you only
need to override 3 Carbon Events: Note: contrary to what you might think and what the name suggests (HitTest), this message can be sent even when the button is not down. Do not assume that you just got a click. The Control Manager is just asking you to verify if a point is in a part of your control, nothing more. You can see a full implementation of this in the HICustomPushButton sample code [Nov 12 2002] |
|