📄 hemispherebutton.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 2002 by Borland Software Corporation
// All rights reserved
// (DO NOT EDIT: machine generated header) 'HemisphereButton.pas' rev: 6.00
#ifndef HemisphereButtonHPP
#define HemisphereButtonHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Hemispherebutton
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum THemisphereBevel { hbNone, hbLowered, hbRaised };
#pragma option pop
class DELPHICLASS THemiBtn;
class PASCALIMPLEMENTATION THemiBtn : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
protected:
Graphics::TColor faceRed;
Graphics::TColor faceGreen;
Graphics::TColor faceBlue;
Graphics::TBitmap* bmUnpressed;
Graphics::TBitmap* bmPressed;
Graphics::TBitmap* bmMask;
Graphics::TBitmap* bmGlpyh;
int oldWidth;
int oldHeight;
int fBevelWidth;
int fGroupIndex;
int fNumGlyphs;
int fGlyphIndex;
bool GlyphValid;
bool InMousePress;
bool oldDown;
bool fDown;
bool fAllowAllUp;
bool fFaceShaded;
bool fGlyphShaded;
bool fGlyphMapped;
bool fGlyphTransparent;
bool fFaceTransparent;
Graphics::TColor fBorderColor;
Graphics::TColor fFaceColor;
Classes::TNotifyEvent fOnClick;
Classes::TNotifyEvent fOnDblClick;
THemisphereBevel fBevelOuter;
THemisphereBevel fBevelInner;
Controls::TMouseEvent fOnMouseDown;
Controls::TMouseEvent fOnMouseUp;
Controls::TMouseMoveEvent fOnMouseMove;
Forms::TFormBorderStyle fBorderStyle;
double fAttenControl;
AnsiString fCaption;
Graphics::TFont* fFont;
void __fastcall CalcImages(void);
virtual void __fastcall DefineProperties(Classes::TFiler* Filer);
bool __fastcall InsideEllipse(int X, int Y);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int Y);
virtual void __fastcall Paint(void);
void __fastcall ReadGlyphValid(Classes::TReader* Reader);
void __fastcall ReadImageGlyph(Classes::TStream* Stream);
void __fastcall ReadImageIn(Classes::TStream* Stream);
void __fastcall ReadImageMask(Classes::TStream* Stream);
void __fastcall ReadImageOut(Classes::TStream* Stream);
void __fastcall RenderBorder(Graphics::TCanvas* aCanvas, int X0, int Y0, int X1, int Y1, int bevWidth, bool Raised);
void __fastcall RenderButtonFaces(int nBorder, Graphics::TCanvas* mskBorder, Graphics::TCanvas* canvUp, Graphics::TCanvas* canvDown);
void __fastcall SetAllowAllUp(bool Value);
void __fastcall SetAttenControl(double Value);
void __fastcall SetBevelInner(THemisphereBevel Value);
void __fastcall SetBevelOuter(THemisphereBevel Value);
void __fastcall SetBevelWidth(int Value);
void __fastcall SetBorderColor(Graphics::TColor Value);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
virtual void __fastcall SetBounds(int aLeft, int aTop, int aWidth, int aHeight);
void __fastcall SetCaption(AnsiString Value);
void __fastcall SetDown(bool Value);
void __fastcall SetFaceColor(Graphics::TColor Value);
void __fastcall SetFaceShaded(bool Value);
void __fastcall SetFaceTransparent(bool Value);
HIDESBASE void __fastcall SetFont(Graphics::TFont* Value);
void __fastcall SetGlyph(Graphics::TBitmap* Value);
void __fastcall SetGlyphIndex(int Value);
void __fastcall SetGlyphMapped(bool Value);
void __fastcall SetGlyphShaded(bool Value);
void __fastcall SetGlyphTransparent(bool Value);
void __fastcall SetNumGlyphs(int Value);
void __fastcall WriteGlyphValid(Classes::TWriter* Writer);
void __fastcall WriteImageGlyph(Classes::TStream* Stream);
void __fastcall WriteImageIn(Classes::TStream* Stream);
void __fastcall WriteImageMask(Classes::TStream* Stream);
void __fastcall WriteImageOut(Classes::TStream* Stream);
public:
__fastcall virtual THemiBtn(Classes::TComponent* aOwner);
__fastcall virtual ~THemiBtn(void);
__published:
__property Action ;
__property Align = {default=0};
__property bool AllowAllUp = {read=fAllowAllUp, write=SetAllowAllUp, nodefault};
__property double AttenControl = {read=fAttenControl, write=SetAttenControl};
__property THemisphereBevel BevelInner = {read=fBevelInner, write=SetBevelInner, nodefault};
__property THemisphereBevel BevelOuter = {read=fBevelOuter, write=SetBevelOuter, nodefault};
__property int BevelWidth = {read=fBevelWidth, write=SetBevelWidth, nodefault};
__property Graphics::TColor BorderColor = {read=fBorderColor, write=SetBorderColor, nodefault};
__property Forms::TBorderStyle BorderStyle = {read=fBorderStyle, write=SetBorderStyle, nodefault};
__property AnsiString Caption = {read=fCaption, write=SetCaption};
__property bool Down = {read=fDown, write=SetDown, nodefault};
__property Enabled = {default=1};
__property Graphics::TColor FaceColor = {read=fFaceColor, write=SetFaceColor, nodefault};
__property bool FaceShaded = {read=fFaceShaded, write=SetFaceShaded, nodefault};
__property bool FaceTransparent = {read=fFaceTransparent, write=SetFaceTransparent, nodefault};
__property Graphics::TFont* Font = {read=fFont, write=SetFont};
__property Graphics::TBitmap* Glyph = {read=bmGlpyh, write=SetGlyph, stored=false};
__property int GlyphIndex = {read=fGlyphIndex, write=SetGlyphIndex, nodefault};
__property bool GlyphShaded = {read=fGlyphShaded, write=SetGlyphShaded, nodefault};
__property bool GlyphMapped = {read=fGlyphMapped, write=SetGlyphMapped, nodefault};
__property bool GlyphTransparent = {read=fGlyphTransparent, write=SetGlyphTransparent, nodefault};
__property int GroupIndex = {read=fGroupIndex, write=fGroupIndex, nodefault};
__property Hint ;
__property int NumGlyphs = {read=fNumGlyphs, write=SetNumGlyphs, nodefault};
__property Classes::TNotifyEvent OnClick = {read=fOnClick, write=fOnClick};
__property Classes::TNotifyEvent OnDblClick = {read=fOnDblClick, write=fOnDblClick};
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnStartDrag ;
__property Controls::TMouseEvent OnMouseDown = {read=fOnMouseDown, write=fOnMouseDown};
__property Controls::TMouseMoveEvent OnMouseMove = {read=fOnMouseMove, write=fOnMouseMove};
__property Controls::TMouseEvent OnMouseUp = {read=fOnMouseUp, write=fOnMouseUp};
__property ParentFont = {default=1};
__property ParentShowHint = {default=1};
__property PopupMenu ;
__property ShowHint ;
__property Visible = {default=1};
};
//-- var, const, procedure ---------------------------------------------------
static const int cDefaultColor = 0x808080;
static const Shortint cDefaultWidth = 0x19;
static const Shortint cDefaultHeight = 0x19;
#define cLightX (-5.773503E-01)
#define cLightY (-5.773503E-01)
#define cLightZ (5.773503E-01)
extern PACKAGE void __fastcall Register(void);
} /* namespace Hemispherebutton */
using namespace Hemispherebutton;
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // HemisphereButton
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -