00001 00002 00003 00004 00005 #ifndef _GCHECK_BOX_H_ 00006 #define _GCHECK_BOX_H_ 00007 00010 class LgiClass GCheckBox : 00011 public GView, 00012 public ResObject 00013 { 00014 class GCheckBoxPrivate *d; 00015 00016 public: 00018 GCheckBox 00019 ( 00021 int id, 00023 int x, 00025 int y, 00027 int cx, 00029 int cy, 00031 char *name, 00033 int InitState = false 00034 ); 00035 ~GCheckBox(); 00036 00037 // Methods 00038 00040 bool ThreeState(); 00049 void ThreeState(bool t); 00051 int64 Value(); 00053 void Value(int64 b); 00054 00055 // Impl 00056 char *Name() { return GView::Name(); } 00057 char16 *NameW() { return GView::NameW(); } 00058 bool Name(char *n); 00059 bool NameW(char16 *n); 00060 void SetFont(GFont *Fnt, bool OwnIt = false); 00061 00062 void OnMouseClick(GMouse &m); 00063 void OnMouseEnter(GMouse &m); 00064 void OnMouseExit(GMouse &m); 00065 bool OnKey(GKey &k); 00066 void OnFocus(bool f); 00067 void OnPaint(GSurface *pDC); 00068 void OnAttach(); 00069 int OnEvent(GMessage *Msg); 00070 }; 00071 00072 #endif
1.5.7.1