00001 /* 00002 * $Header$ 00003 * $Log$ 00004 */ 00005 00006 #ifndef __XSSTEPBUTTON_H 00007 #define __XSSTEPBUTTON_H 00008 00009 #include <TGFrame.h> 00010 #include <TGButton.h> 00011 00012 /* --- Messages that generate ---- */ 00013 00014 #define XSSTEPBUTTON_UP 0 00015 #define XSSTEPBUTTON_DOWN 1 00016 00017 /* =========== XSStepButton ============== */ 00018 class XSStepButton : public TGCompositeFrame 00019 { 00020 protected: 00021 const TGWindow *fMsgWindow; // window handling listbox messages 00022 00023 Int_t buttonId; 00024 00025 TGLayoutHints *lHints; 00026 00027 TGPictureButton *upButton, 00028 *downButton; 00029 00030 UInt_t width, 00031 height; 00032 00033 public: 00034 XSStepButton( const TGWindow *p, Int_t id ); 00035 ~XSStepButton(); 00036 00037 virtual void Associate(const TGWindow *w) { fMsgWindow = w; } 00038 00039 virtual Bool_t ProcessMessage(Long_t msg, 00040 Long_t param1, Long_t param2); 00041 00042 virtual TGDimension GetDefaultSize() const 00043 { return TGDimension(width,height); } 00044 00045 00046 //ClassDef(XSStepButton,1) 00047 }; // XSStepButton 00048 00049 #endif