📄 vclbase.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'VCLBase.pas' rev: 6.00
#ifndef VCLBaseHPP
#define VCLBaseHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <wavctrl.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <EffBmp.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 Vclbase
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TLayout { blGlyphLeft, blGlyphRight, blGlyphTop, blGlyphBottom };
#pragma option pop
typedef int TMargin;
typedef int TSpacing;
typedef Shortint TNumGlyphs;
class DELPHICLASS TEffectGControl;
class PASCALIMPLEMENTATION TEffectGControl : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
bool FTransparent;
void __fastcall SetTransparent(bool Value);
MESSAGE void __fastcall WMMove(Messages::TWMMove &Message);
protected:
Graphics::TBitmap* DG;
Effbmp::TEffectBmp* FB;
virtual void __fastcall PaintFace(void);
virtual void __fastcall PaintEffects(void);
void __fastcall PaintTransparent(void);
void __fastcall PaintEf(void);
public:
void __fastcall XPaint(void);
virtual void __fastcall Paint(void);
__fastcall virtual TEffectGControl(Classes::TComponent* AOwner);
__published:
__property bool Transparent = {read=FTransparent, write=SetTransparent, nodefault};
public:
#pragma option push -w-inl
/* TGraphicControl.Destroy */ inline __fastcall virtual ~TEffectGControl(void) { }
#pragma option pop
};
class DELPHICLASS TEffectCControl;
class PASCALIMPLEMENTATION TEffectCControl : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
bool FTransparent;
void __fastcall SetTransparent(bool Value);
HIDESBASE MESSAGE void __fastcall WMMove(Messages::TWMMove &Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Msg);
protected:
Graphics::TBitmap* DG;
Effbmp::TEffectBmp* FB;
virtual void __fastcall PaintFace(void);
virtual void __fastcall PaintEffects(void);
void __fastcall PaintTransparent(void);
void __fastcall PaintEf(void);
public:
virtual void __fastcall Paint(void);
__fastcall virtual TEffectCControl(Classes::TComponent* AOwner);
__published:
__property bool Transparent = {read=FTransparent, write=SetTransparent, nodefault};
public:
#pragma option push -w-inl
/* TCustomControl.Destroy */ inline __fastcall virtual ~TEffectCControl(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TEffectCControl(HWND ParentWindow) : Controls::TCustomControl(ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TButtonGControl;
class PASCALIMPLEMENTATION TButtonGControl : public TEffectGControl
{
typedef TEffectGControl inherited;
private:
void __fastcall SetSpacing(int Value);
void __fastcall SetMargin(int Value);
void __fastcall SetLayout(TLayout Value);
void __fastcall SetNumGlyphs(TNumGlyphs Value);
void __fastcall SetGlyph(Graphics::TBitmap* 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:
int tx;
int ty;
int gx;
int gy;
Wavctrl::TepWavePlayer* FClickSound;
Wavctrl::TepWavePlayer* FActiveSound;
Graphics::TBitmap* FGlyph;
TNumGlyphs FNumGlyphs;
Graphics::TColor FActiveTextColor;
int FSpacing;
int FMargin;
TLayout FLayout;
Classes::TNotifyEvent FOnClick;
bool FMouseIn;
bool FDown;
virtual bool __fastcall IsMouseIn(int X, int Y);
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);
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
__property TLayout Layout = {read=FLayout, write=SetLayout, default=0};
void __fastcall DrawButtonGlyph(void);
DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
public:
__fastcall virtual TButtonGControl(Classes::TComponent* AOwner);
__fastcall virtual ~TButtonGControl(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
__published:
__property Action ;
__property Graphics::TColor ActiveTextColor = {read=FActiveTextColor, write=FActiveTextColor, nodefault};
__property TNumGlyphs NumGlyphs = {read=FNumGlyphs, write=SetNumGlyphs, default=1};
__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
};
class DELPHICLASS TButtonGTControl;
class PASCALIMPLEMENTATION TButtonGTControl : public TEffectGControl
{
typedef TEffectGControl inherited;
private:
Extctrls::TTimer* FTimer;
Classes::TNotifyEvent FOnClick;
Wavctrl::TepWavePlayer* FClickSound;
Wavctrl::TepWavePlayer* FActiveSound;
void __fastcall CreateTimer(void);
void __fastcall FreeTimer(void);
void __fastcall TimerExpired(System::TObject* Sender);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
void __fastcall SetSpacing(int Value);
void __fastcall SetMargin(int Value);
void __fastcall SetLayout(TLayout Value);
void __fastcall SetNumGlyphs(TNumGlyphs Value);
void __fastcall SetGlyph(Graphics::TBitmap* Value);
protected:
Graphics::TBitmap* FGlyph;
TNumGlyphs FNumGlyphs;
Graphics::TColor FActiveTextColor;
int FSpacing;
int FMargin;
TLayout FLayout;
bool FMouseIn;
bool FDown;
int tx;
int ty;
int gx;
int gy;
virtual bool __fastcall IsMouseIn(int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
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);
void __fastcall DrawButtonGlyph(void);
DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
public:
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
__fastcall virtual TButtonGTControl(Classes::TComponent* AOwner);
__fastcall virtual ~TButtonGTControl(void);
__published:
__property Action ;
__property Graphics::TColor ActiveTextColor = {read=FActiveTextColor, write=FActiveTextColor, nodefault};
__property TNumGlyphs NumGlyphs = {read=FNumGlyphs, write=SetNumGlyphs, default=1};
__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
__property TLayout Layout = {read=FLayout, write=SetLayout, default=0};
__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
};
class DELPHICLASS TButtonCControl;
class PASCALIMPLEMENTATION TButtonCControl : public TEffectCControl
{
typedef TEffectCControl inherited;
private:
Wavctrl::TepWavePlayer* FClickSound;
Wavctrl::TepWavePlayer* FActiveSound;
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMEraseBkGnd(Messages::TWMEraseBkgnd &Msg);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
void __fastcall SetSpacing(int Value);
void __fastcall SetMargin(int Value);
void __fastcall SetLayout(TLayout Value);
void __fastcall SetNumGlyphs(TNumGlyphs Value);
void __fastcall SetGlyph(Graphics::TBitmap* Value);
protected:
Graphics::TBitmap* FGlyph;
TNumGlyphs FNumGlyphs;
Graphics::TColor FActiveTextColor;
int FSpacing;
int FMargin;
TLayout FLayout;
Classes::TNotifyEvent FOnClick;
bool FMouseIn;
bool FDown;
int tx;
int ty;
int gx;
int gy;
virtual bool __fastcall IsMouseIn(int X, int Y);
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);
void __fastcall DrawButtonGlyph(void);
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property int Spacing = {read=FSpacing, write=SetSpacing, default=4};
__property TLayout Layout = {read=FLayout, write=SetLayout, default=0};
DYNAMIC void __fastcall ActionChange(System::TObject* Sender, bool CheckDefaults);
public:
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
__fastcall virtual TButtonCControl(Classes::TComponent* AOwner);
__fastcall virtual ~TButtonCControl(void);
__published:
__property Action ;
__property Graphics::TColor ActiveTextColor = {read=FActiveTextColor, write=FActiveTextColor, nodefault};
__property TNumGlyphs NumGlyphs = {read=FNumGlyphs, write=SetNumGlyphs, default=1};
__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
__property Wavctrl::TepWavePlayer* ClickSound = {read=FClickSound, write=FClickSound};
__property Wavctrl::TepWavePlayer* ActiveSound = {read=FActiveSound, write=FActiveSound};
__property Classes::TNotifyEvent OnClick = {read=FOnClick, write=FOnClick};
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TButtonCControl(HWND ParentWindow) : TEffectCControl(ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
static const Word TInt = 0x12c;
extern PACKAGE void __fastcall CalcLCoord(TLayout Layout, const Types::TRect &R, int gw, int gh, int tw, int th, TSpacing spacing, TMargin margin, int &tx, int &ty, int &gx, int &gy);
} /* namespace Vclbase */
using namespace Vclbase;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // VCLBase
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -