00001 00002 00003 00004 00005 #ifndef __GCOLOUR_SELECT_H 00006 #define __GCOLOUR_SELECT_H 00007 00008 #include "GPopup.h" 00009 00011 class GColourSelect : 00012 public GDropDown, 00013 public ResObject 00014 { 00015 friend class GColourSelectPopup; 00016 00017 COLOUR c32; 00018 GArray<COLOUR> Presets; 00019 00020 public: 00021 enum 00022 { 00023 Transparent = 0 00024 }; 00025 00026 GColourSelect(GArray<COLOUR> *c32 = 0); 00027 00028 // Methods 00029 void SetColourList(GArray<COLOUR> *c32 = 0); 00030 00031 // GView 00032 int64 Value(); 00033 void Value(int64 i); 00034 void OnPaint(GSurface *pDC); 00035 }; 00036 00037 #endif