00001 00002 00003 00004 00005 #ifndef _GPROGRESS_H_ 00006 #define _GPROGRESS_H_ 00007 00009 class LgiClass GProgress : 00010 public GControl, 00011 public Progress, 00012 public ResObject 00013 { 00014 COLOUR c; 00015 #ifdef WIN32 00016 int Shift; 00017 #endif 00018 00019 public: 00020 GProgress(int id, int x, int y, int cx, int cy, const char *name); 00021 ~GProgress(); 00022 00023 const char *GetClass() { return "GProgress"; } 00025 void SetLimits(int64 l, int64 h); 00027 void Value(int64 v); 00028 int64 Value(); 00029 int OnEvent(GMessage *Msg); 00030 00031 #if WIN32NATIVE 00032 bool SetForegroundFill(GViewFill *Fill); 00033 bool SetBackgroundFill(GViewFill *Fill); 00034 #else 00035 void OnPaint(GSurface *pDC); 00036 void GetLimits(int64 &l, int64 &h); 00037 void Colour(COLOUR Col); 00038 COLOUR Colour(); 00039 #endif 00040 }; 00041 00042 #endif