33 lines
1011 B
C++
33 lines
1011 B
C++
//---------------------------------------------------------------------------
|
|
#ifndef ActBtnH
|
|
#define ActBtnH
|
|
//---------------------------------------------------------------------------
|
|
#include <vcl\SysUtils.hpp>
|
|
#include <vcl\Controls.hpp>
|
|
#include <vcl\Classes.hpp>
|
|
#include <vcl\Forms.hpp>
|
|
#include <vcl\ExtCtrls.hpp>
|
|
#include <vcl\StdCtrls.hpp>
|
|
//---------------------------------------------------------------------------
|
|
class TActiveImage : public TImage
|
|
{
|
|
private:
|
|
bool captured;
|
|
void __fastcall MouseMove( Classes::TShiftState Shift, int X, int Y);
|
|
|
|
protected:
|
|
Graphics::TPicture *GlyphOver,*GlyphNormal, *GlyphPress;
|
|
|
|
void __fastcall Click( void);
|
|
|
|
public:
|
|
__fastcall TActiveImage(TComponent* Owner);
|
|
__fastcall ~TActiveImage();
|
|
|
|
__published:
|
|
__property Graphics::TPicture *Picture_Over={read=GlyphOver, write=GlyphOver};
|
|
__property Graphics::TPicture *Picture_Press={read=GlyphPress, write=GlyphPress};
|
|
};
|
|
//---------------------------------------------------------------------------
|
|
#endif
|