ultimatepp/uppdev/ForlanoVega/OptionImage.h
cxl 4a1c627474 Adding uppdev....
git-svn-id: svn://ultimatepp.org/upp/trunk@328 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2008-08-15 08:36:24 +00:00

28 lines
798 B
C++

#ifndef _ForlanoVega_OptionImage_h_
#define _ForlanoVega_OptionImage_h_
#include <CtrlLib/CtrlLib.h>
class OptionImage : public Option {
void ReFocus();
protected:
Image imgYes, imgNo, imgMaybe;
public:
// Callback WhenChange;
virtual void Paint(Draw& draw);
OptionImage& SetImage(const Image& m1, const Image& m2, const Image& m3)
{ imgYes = m1; imgNo = m2; imgMaybe = m3; Refresh(); return *this; }
OptionImage& SetImage(const Image& m1, const Image& m2)
{ imgYes = m1; imgNo = m2; Refresh(); return *this; }
OptionImage& ThreeState(bool b = true) { threestate = b; notnull = false; return *this; }
// void OnChange() {WhenChange();}
typedef OptionImage CLASSNAME;
OptionImage();
~OptionImage(){;}
};
#endif