📄 bmpctrls.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'BmpCtrls.pas' rev: 6.00
#ifndef BmpCtrlsHPP
#define BmpCtrlsHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <wavctrl.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <VCLBase.hpp> // Pascal unit
#include <BMPUtils.hpp> // Pascal unit
#include <GrUtils.hpp> // Pascal unit
#include <Dialogs.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Bmpctrls
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TepBMPCheckBox;
class PASCALIMPLEMENTATION TepBMPCheckBox : public Vclbase::TEffectGControl
{
typedef Vclbase::TEffectGControl inherited;
private:
Graphics::TBitmap* FCheckGlyph;
Classes::TAlignment FAlignment;
Graphics::TColor FActiveTextColor;
bool FEfCaption;
bool FMouseIn;
bool FDown;
Classes::TNotifyEvent FOnClick;
void __fastcall SetCheckGlyph(Graphics::TBitmap* Value);
void __fastcall SetAlignment(Classes::TLeftRight Value);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
protected:
bool FChecked;
Wavctrl::TepWavePlayer* FClickSound;
Wavctrl::TepWavePlayer* FActiveSound;
void __fastcall SetChecked(bool Value);
virtual void __fastcall PaintFace(void);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
public:
__fastcall virtual TepBMPCheckBox(Classes::TComponent* AOwner);
__fastcall virtual ~TepBMPCheckBox(void);
virtual void __fastcall _Click(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
__published:
__property Action ;
__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
__property bool EfCaption = {read=FEfCaption, write=FEfCaption, nodefault};
__property Color = {default=-2147483643};
__property Font ;
__property Caption ;
__property Graphics::TBitmap* CheckGlyph = {read=FCheckGlyph, write=SetCheckGlyph};
__property Classes::TLeftRight TextAlignment = {read=FAlignment, write=SetAlignment, nodefault};
__property bool Checked = {read=FChecked, write=SetChecked, nodefault};
__property Graphics::TColor ActiveTextColor = {read=FActiveTextColor, write=FActiveTextColor, nodefault};
__property DragCursor = {default=-12};
__property DragMode = {default=0};
__property Enabled = {default=1};
__property PopupMenu ;
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property ShowHint ;
__property Visible = {default=1};
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnStartDrag ;
};
class DELPHICLASS TepBMPButton;
class PASCALIMPLEMENTATION TepBMPButton : public Vclbase::TEffectGControl
{
typedef Vclbase::TEffectGControl inherited;
private:
Extctrls::TTimer* FTimer;
Graphics::TBitmap* FDownGlyph;
Graphics::TBitmap* FUpGlyph;
Graphics::TBitmap* FActiveGlyph;
Graphics::TBitmap* FUnEnGlyph;
bool MouseInBtn;
bool FDown;
Classes::TNotifyEvent FOnClick;
int FW;
int FH;
Byte NGl;
Graphics::TColor FTransparentColor;
Wavctrl::TepWavePlayer* FClickSound;
Wavctrl::TepWavePlayer* FActiveSound;
void __fastcall CreateTimer(void);
void __fastcall FreeTimer(void);
void __fastcall TimerExpired(System::TObject* Sender);
void __fastcall SetDownGlyph(Graphics::TBitmap* Value);
void __fastcall SetUpGlyph(Graphics::TBitmap* Value);
void __fastcall SetActiveGlyph(Graphics::TBitmap* Value);
void __fastcall SetUnEnGlyph(Graphics::TBitmap* Value);
void __fastcall DrawBtnGlyph(Graphics::TCanvas* Cnvs);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
protected:
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
virtual void __fastcall PaintFace(void);
public:
__fastcall virtual TepBMPButton(Classes::TComponent* AOwner);
__fastcall virtual ~TepBMPButton(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
__published:
__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
__property Color = {default=-2147483643};
__property Graphics::TBitmap* UpGlyph = {read=FUpGlyph, write=SetUpGlyph};
__property Graphics::TBitmap* DownGlyph = {read=FDownGlyph, write=SetDownGlyph};
__property Graphics::TBitmap* ActiveGlyph = {read=FActiveGlyph, write=SetActiveGlyph};
__property Graphics::TBitmap* UnEnGlyph = {read=FUnEnGlyph, write=SetUnEnGlyph};
__property Enabled = {default=1};
__property Visible = {default=1};
__property PopupMenu ;
__property ParentFont = {default=1};
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
};
class DELPHICLASS TepBMPRadioButton;
class PASCALIMPLEMENTATION TepBMPRadioButton : public TepBMPCheckBox
{
typedef TepBMPCheckBox inherited;
private:
int FGroupIndex;
public:
virtual void __fastcall _Click(void);
__fastcall virtual TepBMPRadioButton(Classes::TComponent* AOwner);
__published:
__property int GroupIndex = {read=FGroupIndex, write=FGroupIndex, nodefault};
__property Color = {default=-2147483643};
__property Font ;
__property Caption ;
__property CheckGlyph ;
__property TextAlignment ;
__property Checked ;
__property OnClick ;
__property DragCursor = {default=-12};
__property DragMode = {default=0};
__property Enabled = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ParentFont = {default=1};
__property ShowHint ;
__property Visible = {default=1};
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TepBMPCheckBox.Destroy */ inline __fastcall virtual ~TepBMPRadioButton(void) { }
#pragma option pop
};
#pragma option push -b-
enum TState { sOn, sOff };
#pragma option pop
class DELPHICLASS TepBMPSwitch;
class PASCALIMPLEMENTATION TepBMPSwitch : public Vclbase::TEffectGControl
{
typedef Vclbase::TEffectGControl inherited;
private:
Graphics::TBitmap* FOnGlyph;
Graphics::TBitmap* FOffGlyph;
Graphics::TColor FTransparentColor;
Classes::TNotifyEvent FOnOn;
Classes::TNotifyEvent FOnOff;
TState FState;
void __fastcall SetOnGlyph(Graphics::TBitmap* Value);
void __fastcall SetOffGlyph(Graphics::TBitmap* Value);
void __fastcall DrawSwitchGlyph(void);
void __fastcall SetState(TState Value);
protected:
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
virtual void __fastcall PaintFace(void);
public:
__fastcall virtual TepBMPSwitch(Classes::TComponent* AOwner);
__fastcall virtual ~TepBMPSwitch(void);
__published:
__property Graphics::TBitmap* OnGlyph = {read=FOnGlyph, write=SetOnGlyph};
__property Graphics::TBitmap* OffGlyph = {read=FOffGlyph, write=SetOffGlyph};
__property Enabled = {default=1};
__property Visible = {default=1};
__property Classes::TNotifyEvent OnOn = {read=FOnOn, write=FOnOn};
__property Classes::TNotifyEvent OnOff = {read=FOnOff, write=FOnOff};
__property TState State = {read=FState, write=SetState, nodefault};
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Bmpctrls */
using namespace Bmpctrls;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // BmpCtrls
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -