📄 vrswitch.hpp
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'VrSwitch.pas' rev: 5.00
#ifndef VrSwitchHPP
#define VrSwitchHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Menus.hpp> // Pascal unit
#include <VrSystem.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 Vrswitch
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TVrSwitchOption { soActiveClick, soMouseClip, soHandPoint, soThumbOpaque };
#pragma option pop
typedef Set<TVrSwitchOption, soActiveClick, soThumbOpaque> TVrSwitchOptions;
class DELPHICLASS TVrSwitch;
class PASCALIMPLEMENTATION TVrSwitch : public Vrcontrols::TVrCustomImageControl
{
typedef Vrcontrols::TVrCustomImageControl inherited;
private:
int FOffset;
int FPositions;
Vrcontrols::TVrOrientation FOrientation;
Vrclasses::TVrBevel* FBevel;
Vrcontrols::TVrProgressStyle FStyle;
TVrSwitchOptions FOptions;
Graphics::TColor FBorderColor;
int FBorderWidth;
Graphics::TColor FFocusColor;
int FBackImageIndex;
int FThumbImageIndex;
Vrsystem::TVrBitmapList* FBitmapList;
Vrcontrols::TVrChangeLink* FBitmapListLink;
Classes::TNotifyEvent FOnChange;
int FHit;
bool FFocused;
bool FClipOn;
Windows::TRect FThumbRect;
int FThumbWidth;
int FThumbHeight;
Graphics::TBitmap* FThumbImage;
Vrclasses::TVrNumGlyphs FThumbStates;
int FThumbIndent;
bool FThumbDown;
bool FThumbHasMouse;
void __fastcall SetThumbStates(Vrclasses::TVrNumGlyphs Value);
void __fastcall SetThumbIndent(int Value);
void __fastcall SetOrientation(Vrcontrols::TVrOrientation Value);
void __fastcall SetOffset(int Value);
void __fastcall SetPositions(int Value);
void __fastcall SetStyle(Vrcontrols::TVrProgressStyle Value);
void __fastcall SetOptions(TVrSwitchOptions Value);
void __fastcall SetBorderColor(Graphics::TColor Value);
HIDESBASE void __fastcall SetBorderWidth(int Value);
void __fastcall SetFocusColor(Graphics::TColor Value);
void __fastcall SetBevel(Vrclasses::TVrBevel* Value);
void __fastcall SetBackImageIndex(int Value);
void __fastcall SetThumbImageIndex(int Value);
void __fastcall SetBitmapList(Vrsystem::TVrBitmapList* Value);
void __fastcall BevelChanged(System::TObject* Sender);
void __fastcall BitmapListChanged(System::TObject* Sender);
void __fastcall AdjustControlSize(void);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Message);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Msg);
HIDESBASE MESSAGE void __fastcall CMFocusChanged(Controls::TCMFocusChanged &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
protected:
void __fastcall SetThumbTop(int ATop);
void __fastcall SetThumbLeft(int ALeft);
void __fastcall CenterThumb(void);
virtual void __fastcall Paint(void);
void __fastcall PaintThumb(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
void __fastcall GetThumbImage(void);
DYNAMIC void __fastcall Change(void);
Graphics::TBitmap* __fastcall GetBitmap(int Index);
int __fastcall GetViewWidth(void);
int __fastcall GetOffsetByValue(int Value);
int __fastcall GetValueByOffset(int Offset);
Windows::TRect __fastcall GetSliderRect(void);
int __fastcall GetMinIndent(const Windows::TRect &Rect);
void __fastcall SetThumbOffset(int Value);
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);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
public:
__fastcall virtual TVrSwitch(Classes::TComponent* AOwner);
__fastcall virtual ~TVrSwitch(void);
__published:
__property int Positions = {read=FPositions, write=SetPositions, default=4};
__property int Offset = {read=FOffset, write=SetOffset, default=0};
__property Vrcontrols::TVrOrientation Orientation = {read=FOrientation, write=SetOrientation, default=0
};
__property int BackImageIndex = {read=FBackImageIndex, write=SetBackImageIndex, default=-1};
__property int ThumbImageIndex = {read=FThumbImageIndex, write=SetThumbImageIndex, default=-1};
__property Vrsystem::TVrBitmapList* BitmapList = {read=FBitmapList, write=SetBitmapList};
__property Vrclasses::TVrNumGlyphs ThumbStates = {read=FThumbStates, write=SetThumbStates, default=1
};
__property int ThumbIndent = {read=FThumbIndent, write=SetThumbIndent, default=1};
__property Vrcontrols::TVrProgressStyle Style = {read=FStyle, write=SetStyle, default=0};
__property Vrclasses::TVrBevel* Bevel = {read=FBevel, write=SetBevel};
__property TVrSwitchOptions Options = {read=FOptions, write=SetOptions, default=15};
__property Graphics::TColor BorderColor = {read=FBorderColor, write=SetBorderColor, default=-2147483633
};
__property int BorderWidth = {read=FBorderWidth, write=SetBorderWidth, default=1};
__property Graphics::TColor FocusColor = {read=FFocusColor, write=SetFocusColor, default=16711680};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property Anchors ;
__property Constraints ;
__property Color ;
__property ParentColor ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TVrSwitch(HWND ParentWindow) : Vrcontrols::TVrCustomImageControl(
ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
} /* namespace Vrswitch */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vrswitch;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // VrSwitch
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -