📄 vrbuttons.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'VrButtons.pas' rev: 5.00
#ifndef VrButtonsHPP
#define VrButtonsHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <VrSystem.hpp> // Pascal unit
#include <VrThreads.hpp> // Pascal unit
#include <VrSysUtils.hpp> // Pascal unit
#include <VrControls.hpp> // Pascal unit
#include <VrClasses.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 Vrbuttons
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TVrHyperButton;
class PASCALIMPLEMENTATION TVrHyperButton : public Vrcontrols::TVrGraphicImageControl
{
typedef Vrcontrols::TVrGraphicImageControl inherited;
private:
Graphics::TBitmap* FGlyph;
Graphics::TColor FBorderColor;
Graphics::TColor FBorderHighlight;
Graphics::TColor FBorderShadow;
Graphics::TColor FColorEnter;
Graphics::TColor FColorLeave;
int FSpacing;
int FMargin;
Vrcontrols::TVrImageTextLayout FLayout;
Graphics::TColor FDisabledText;
bool FDisabledAnimate;
Windows::TPoint FSize;
Windows::TRect FImageRect;
Windows::TRect FTextBounds;
bool FHasMouse;
bool FDown;
bool FPressed;
void __fastcall SetGlyph(Graphics::TBitmap* Value);
void __fastcall SetBorderColor(Graphics::TColor Value);
void __fastcall SetBorderHighlight(Graphics::TColor Value);
void __fastcall SetBorderShadow(Graphics::TColor Value);
void __fastcall SetColorEnter(Graphics::TColor Value);
void __fastcall SetColorLeave(Graphics::TColor Value);
void __fastcall SetLayout(Vrcontrols::TVrImageTextLayout Value);
void __fastcall SetMargin(int Value);
void __fastcall SetSpacing(int Value);
void __fastcall GlyphChanged(System::TObject* Sender);
HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall Paint(void);
DYNAMIC void __fastcall Click(void);
void __fastcall CalcPaintParams(void);
DYNAMIC HPALETTE __fastcall GetPalette(void);
virtual void __fastcall MouseEnter(void);
virtual void __fastcall MouseLeave(void);
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);
public:
__fastcall virtual TVrHyperButton(Classes::TComponent* AOwner);
__fastcall virtual ~TVrHyperButton(void);
__published:
__property Graphics::TBitmap* Glyph = {read=FGlyph, write=SetGlyph};
__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, nodefault};
__property Graphics::TColor BorderHighlight = {read=FBorderHighlight, write=SetBorderHighlight, nodefault
};
__property Graphics::TColor BorderShadow = {read=FBorderShadow, write=SetBorderShadow, nodefault};
__property Graphics::TColor ColorEnter = {read=FColorEnter, write=SetColorEnter, nodefault};
__property Graphics::TColor ColorLeave = {read=FColorLeave, write=SetColorLeave, nodefault};
__property Vrcontrols::TVrImageTextLayout Layout = {read=FLayout, write=SetLayout, default=0};
__property int Margin = {read=FMargin, write=SetMargin, default=-1};
__property int Spacing = {read=FSpacing, write=SetSpacing, default=5};
__property Graphics::TColor DisabledText = {read=FDisabledText, write=FDisabledText, default=-2147483645
};
__property bool DisabledAnimate = {read=FDisabledAnimate, write=FDisabledAnimate, default=1};
__property Transparent ;
__property OnMouseEnter ;
__property OnMouseLeave ;
__property Anchors ;
__property Constraints ;
__property Caption ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
};
class DELPHICLASS TVrShadowBrush;
class PASCALIMPLEMENTATION TVrShadowBrush : public Graphics::TBrush
{
typedef Graphics::TBrush inherited;
public:
__fastcall TVrShadowBrush(void);
__published:
__property Color ;
public:
#pragma option push -w-inl
/* TBrush.Destroy */ inline __fastcall virtual ~TVrShadowBrush(void) { }
#pragma option pop
};
class DELPHICLASS TVrShadowPen;
class PASCALIMPLEMENTATION TVrShadowPen : public Graphics::TPen
{
typedef Graphics::TPen inherited;
public:
__fastcall TVrShadowPen(void);
__published:
__property Color ;
public:
#pragma option push -w-inl
/* TPen.Destroy */ inline __fastcall virtual ~TVrShadowPen(void) { }
#pragma option pop
};
#pragma option push -b-
enum TVrShadowButtonStyle { ssRectangle, ssRoundRect };
#pragma option pop
#pragma option push -b-
enum TVrShadowDirection { sdTopLeft, sdTopRight, sdBottomLeft, sdBottomRight };
#pragma option pop
class DELPHICLASS TVrShadowButton;
class PASCALIMPLEMENTATION TVrShadowButton : public Vrcontrols::TVrGraphicImageControl
{
typedef Vrcontrols::TVrGraphicImageControl inherited;
private:
int FDepth;
int FDepthAdjust;
Graphics::TColor FShadowColor;
Graphics::TColor FShadowOutline;
TVrShadowBrush* FBrush;
TVrShadowPen* FPen;
TVrShadowButtonStyle FStyle;
TVrShadowDirection FDirection;
Vrcontrols::TVrTextAlignment FTextAlign;
Graphics::TColor FDisabledTextColor;
bool Down;
bool Pressed;
Windows::TRect CurrentRect;
void __fastcall SetBrush(TVrShadowBrush* Value);
void __fastcall SetPen(TVrShadowPen* Value);
void __fastcall SetDepth(int Value);
void __fastcall SetShadowColor(Graphics::TColor Value);
void __fastcall SetShadowOutline(Graphics::TColor Value);
void __fastcall SetStyle(TVrShadowButtonStyle Value);
void __fastcall SetDirection(TVrShadowDirection Value);
void __fastcall SetTextAlign(Vrcontrols::TVrTextAlignment Value);
void __fastcall SetDisabledTextColor(Graphics::TColor Value);
void __fastcall StyleChanged(System::TObject* Sender);
void __fastcall AdjustBtnRect(Windows::TRect &Rect, int Offset);
HIDESBASE void __fastcall DoMouseDown(int XPos, int YPos);
HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
protected:
void __fastcall DrawButton(void);
virtual void __fastcall Paint(void);
DYNAMIC void __fastcall Click(void);
public:
__fastcall virtual TVrShadowButton(Classes::TComponent* AOwner);
__fastcall virtual ~TVrShadowButton(void);
__published:
__property TVrShadowBrush* Brush = {read=FBrush, write=SetBrush};
__property TVrShadowPen* Pen = {read=FPen, write=SetPen};
__property int Depth = {read=FDepth, write=SetDepth, default=4};
__property int DepthAdjust = {read=FDepthAdjust, write=FDepthAdjust, default=2};
__property Graphics::TColor ShadowColor = {read=FShadowColor, write=SetShadowColor, default=-2147483632
};
__property Graphics::TColor ShadowOutline = {read=FShadowOutline, write=SetShadowOutline, default=-2147483632
};
__property TVrShadowButtonStyle Style = {read=FStyle, write=SetStyle, default=1};
__property TVrShadowDirection Direction = {read=FDirection, write=SetDirection, default=3};
__property Vrcontrols::TVrTextAlignment TextAlign = {read=FTextAlign, write=SetTextAlign, default=1
};
__property Graphics::TColor DisabledTextColor = {read=FDisabledTextColor, write=SetDisabledTextColor
, default=-2147483645};
__property Transparent ;
__property Anchors ;
__property BiDiMode ;
__property Constraints ;
__property Caption ;
__property Color ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
};
class DELPHICLASS TVrDemoButton;
class PASCALIMPLEMENTATION TVrDemoButton : public Vrcontrols::TVrCustomImageControl
{
typedef Vrcontrols::TVrCustomImageControl inherited;
private:
Graphics::TBitmap* FBitmap;
Graphics::TFont* FFontEnter;
Graphics::TFont* FFontLeave;
Vrcontrols::TVrByteInt FBevelWidth;
int FOutlineWidth;
Graphics::TColor FOutlineColor;
Graphics::TColor FShadowColor;
Graphics::TColor FHighlightColor;
Graphics::TColor FFocusColor;
Vrcontrols::TVrTextAlignment FTextAlignment;
Graphics::TColor FDisabledTextColor;
Vrclasses::TVrFont3D* FFont3D;
bool FFlat;
bool FHasMouse;
bool FFocused;
bool Down;
bool Pressed;
void __fastcall SetBitmap(Graphics::TBitmap* Value);
void __fastcall SetFontEnter(Graphics::TFont* Value);
void __fastcall SetFontLeave(Graphics::TFont* Value);
void __fastcall SetOutlineColor(Graphics::TColor Value);
void __fastcall SetShadowColor(Graphics::TColor Value);
void __fastcall SetHighlightColor(Graphics::TColor Value);
HIDESBASE void __fastcall SetBevelWidth(Vrcontrols::TVrByteInt Value);
void __fastcall SetOutlineWidth(int Value);
void __fastcall SetTextAlignment(Vrcontrols::TVrTextAlignment Value);
void __fastcall SetDisabledTextColor(Graphics::TColor Value);
void __fastcall SetFocusColor(Graphics::TColor Value);
void __fastcall SetFont3D(Vrclasses::TVrFont3D* Value);
void __fastcall SetFlat(bool Value);
void __fastcall InternalFontChanged(System::TObject* Sender);
void __fastcall BitmapChanged(System::TObject* Sender);
HIDESBASE void __fastcall DoMouseDown(int XPos, int YPos);
HIDESBASE MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMDialogChar(Messages::TWMKey &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMMouseMove(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFocusChanged(Controls::TCMFocusChanged &Message);
protected:
virtual void __fastcall Paint(void);
DYNAMIC HPALETTE __fastcall GetPalette(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyUp(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall Click(void);
public:
__fastcall virtual TVrDemoButton(Classes::TComponent* AOwner);
__fastcall virtual ~TVrDemoButton(void);
__published:
__property Graphics::TFont* FontEnter = {read=FFontEnter, write=SetFontEnter};
__property Graphics::TFont* FontLeave = {read=FFontLeave, write=SetFontLeave};
__property Graphics::TBitmap* Bitmap = {read=FBitmap, write=SetBitmap};
__property Graphics::TColor OutlineColor = {read=FOutlineColor, write=SetOutlineColor, default=0};
__property Graphics::TColor ShadowColor = {read=FShadowColor, write=SetShadowColor, default=-2147483632
};
__property Graphics::TColor HighlightColor = {read=FHighlightColor, write=SetHighlightColor, default=-2147483628
};
__property Vrcontrols::TVrByteInt BevelWidth = {read=FBevelWidth, write=SetBevelWidth, default=2};
__property int OutlineWidth = {read=FOutlineWidth, write=SetOutlineWidth, default=1};
__property Vrcontrols::TVrTextAlignment TextAlignment = {read=FTextAlignment, write=SetTextAlignment
, default=1};
__property Graphics::TColor DisabledTextColor = {read=FDisabledTextColor, write=SetDisabledTextColor
, default=-2147483645};
__property Graphics::TColor FocusColor = {read=FFocusColor, write=SetFocusColor, default=16711680};
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -