00001 /* 00002 * TPushButton.h 00003 * Muso 00004 * 00005 * Created by Airy ANDRE on 17/10/04. 00006 * Copyright 2004 __MyCompanyName__. All rights reserved. 00007 * 00008 */ 00009 00010 #if !defined(_TPushButton_h_) 00011 #define _TPushButton_h_ 00012 00013 #include "TValuePictButtonControl.h" 00014 00024 class TPushButton : public TValuePictButtonControl 00025 { 00026 AUGUIDefineControl(TPushButton, TValuePictButtonControl, "push"); 00027 protected: 00028 // Constructor/Destructor 00029 TPushButton(HIViewRef inControl); 00030 virtual ~TPushButton(); 00031 00032 virtual bool UseNonblockingTracking() { return true; } 00033 virtual OSStatus ControlHit(ControlPartCode inPart, UInt32 inModifiers ); 00034 virtual OSStatus StartTracking(TCarbonEvent&inEvent, HIPoint& from); 00035 virtual OSStatus StopTracking(TCarbonEvent&inEvent, HIPoint& from); 00036 00037 int mValue; 00038 }; 00039 00040 #endif _TPushButton_h_ 00041