00001
00002 #ifndef BESGPICTUREBUTTON_H
00003 #define BESGPICTUREBUTTON_H
00004
00005 #include "TGButton.h"
00006
00007 class BesGPictureButton : public TGPictureButton {
00008
00009 public:
00010
00011 BesGPictureButton(const TGWindow *p, const TGPicture *pic, Int_t id = -1,
00012 GContext_t norm = GetDefaultGC()(),
00013 UInt_t option = kRaisedFrame | kDoubleBorder);
00014 BesGPictureButton(const TGWindow *p, const TGPicture *pic, const char *cmd,
00015 Int_t id = -1, GContext_t norm = GetDefaultGC()(),
00016 UInt_t option = kRaisedFrame | kDoubleBorder);
00017 BesGPictureButton(const TGWindow *p = 0, const char* pic = 0, Int_t id = -1,
00018 GContext_t norm = GetDefaultGC()(),
00019 UInt_t option = kRaisedFrame | kDoubleBorder);
00020
00021 Bool_t HandleCrossing(Event_t *event);
00022 Bool_t IsStateOn() { return fState; }
00023 virtual void SetState(Bool_t state) { fState = state; }
00024
00025 virtual void SetPicture(const TGPicture *new_pic);
00026 virtual void SetPictureHL(const TGPicture *hl_pic) { fPicHL = hl_pic; }
00027
00028 private:
00029
00030 protected:
00031
00032 const TGPicture *fPicHL;
00033 Bool_t fState;
00034
00035 ClassDef(BesGPictureButton,0)
00036 };
00037
00038 #endif
00039
00040