📄 vrprogressbar.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'VrProgressBar.pas' rev: 5.00
#ifndef VrProgressBarHPP
#define VrProgressBarHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.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 Vrprogressbar
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TVrProgressBarFill { pfPlain, pfGradient, pfBitmap };
#pragma option pop
class DELPHICLASS TVrProgressBar;
class PASCALIMPLEMENTATION TVrProgressBar : public Vrcontrols::TVrGraphicImageControl
{
typedef Vrcontrols::TVrGraphicImageControl inherited;
private:
Vrclasses::TVrBevel* FBevel;
int FMinValue;
int FMaxValue;
int FPosition;
TVrProgressBarFill FFillType;
Graphics::TColor FStartColor;
Graphics::TColor FEndColor;
bool FSmooth;
Vrcontrols::TVrOrientation FOrientation;
int FStep;
Classes::TNotifyEvent FOnChange;
Graphics::TBitmap* FBitmap;
Windows::TRect ViewPort;
Graphics::TBitmap* BarImage;
bool UpdateBarImage;
int __fastcall GetPercentDone(void);
void __fastcall SetMinValue(int Value);
void __fastcall SetMaxValue(int Value);
void __fastcall SetPosition(int Value);
void __fastcall SetStartColor(Graphics::TColor Value);
void __fastcall SetEndColor(Graphics::TColor Value);
void __fastcall SetFillType(TVrProgressBarFill Value);
void __fastcall SetSmooth(bool Value);
void __fastcall SetOrientation(Vrcontrols::TVrOrientation Value);
void __fastcall SetBevel(Vrclasses::TVrBevel* Value);
void __fastcall SetBitmap(Graphics::TBitmap* Value);
void __fastcall BitmapChanged(System::TObject* Sender);
void __fastcall BevelChanged(System::TObject* Sender);
MESSAGE void __fastcall CMSysColorChange(Messages::TMessage &Message);
protected:
void __fastcall CreateBarImage(const Windows::TRect &Rect);
virtual void __fastcall Paint(void);
void __fastcall DrawHori(void);
void __fastcall DrawVert(void);
HIDESBASE virtual void __fastcall Changed(void);
public:
__fastcall virtual TVrProgressBar(Classes::TComponent* AOwner);
__fastcall virtual ~TVrProgressBar(void);
void __fastcall StepIt(void);
void __fastcall StepBy(int Delta);
__property int PercentDone = {read=GetPercentDone, nodefault};
__published:
__property Vrclasses::TVrBevel* Bevel = {read=FBevel, write=SetBevel};
__property int MaxValue = {read=FMaxValue, write=SetMaxValue, default=100};
__property int MinValue = {read=FMinValue, write=SetMinValue, default=0};
__property int Position = {read=FPosition, write=SetPosition, default=100};
__property Graphics::TColor StartColor = {read=FStartColor, write=SetStartColor, default=8388608};
__property Graphics::TColor EndColor = {read=FEndColor, write=SetEndColor, default=16776960};
__property bool Smooth = {read=FSmooth, write=SetSmooth, default=0};
__property Vrcontrols::TVrOrientation Orientation = {read=FOrientation, write=SetOrientation, default=1
};
__property int Step = {read=FStep, write=FStep, default=10};
__property Graphics::TBitmap* Bitmap = {read=FBitmap, write=SetBitmap};
__property TVrProgressBarFill FillType = {read=FFillType, write=SetFillType, default=1};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property Align ;
__property Anchors ;
__property Constraints ;
__property Color ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Hint ;
__property ParentColor ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Vrprogressbar */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vrprogressbar;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // VrProgressBar
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -