⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 vrrotaryswitch.hpp

📁 wimax bs simulator对应的GUI程序
💻 HPP
字号:
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'VrRotarySwitch.pas' rev: 5.00

#ifndef VrRotarySwitchHPP
#define VrRotarySwitchHPP

#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 <Math.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 Vrrotaryswitch
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TVrRotarySwitch;
class PASCALIMPLEMENTATION TVrRotarySwitch : public Vrcontrols::TVrCustomControl 
{
	typedef Vrcontrols::TVrCustomControl inherited;
	
private:
	Vrcontrols::TVrIntMax FRadius;
	Classes::TNotifyEvent FOnChange;
	bool FMouseDown;
	Classes::TStrings* FSwitchPositions;
	bool FShowLabel;
	Graphics::TFont* FFont;
	Graphics::TBitmap* FBitmapImage;
	int FSwitchPosition;
	int FSwitchAngleStart;
	int FSwitchAngleEnd;
	Graphics::TColor FButtonColor;
	Graphics::TColor FWinchColor;
	Graphics::TColor FSwitchColor;
	int FLabelsOffset;
	int FWinchOffset;
	Controls::TKeyEvent FOnKeyUp;
	Controls::TKeyEvent FOnKeydown;
	bool Focused;
	void __fastcall SetRadius(Vrcontrols::TVrIntMax Value);
	void __fastcall SetSwitchPositions(Classes::TStrings* Value);
	void __fastcall SetShowLabel(bool Value);
	HIDESBASE void __fastcall SetFont(Graphics::TFont* Value);
	void __fastcall SetSwitchPosition(int Value);
	void __fastcall SetSwitchAngleEnd(int Value);
	void __fastcall SetSwitchAngleStart(int Value);
	void __fastcall SetButtonColor(Graphics::TColor Value);
	void __fastcall SetSwitchColor(Graphics::TColor Value);
	void __fastcall SetWinchColor(Graphics::TColor Value);
	void __fastcall SetLabelsOffset(int Value);
	int __fastcall GetPercentDone(void);
	void __fastcall clearcanvas(void);
	HIDESBASE MESSAGE void __fastcall WMKeyUp(Messages::TWMKey &Message);
	HIDESBASE MESSAGE void __fastcall WMKeyDown(Messages::TWMKey &Message);
	HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMSetFocus &Message);
	MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &message);
	void __fastcall SetWinchOffset(int Value);
	
protected:
	HIDESBASE void __fastcall Changed(void);
	void __fastcall UpdatePosition(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);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	void __fastcall DrawLabels(void);
	void __fastcall DrawSwitch(void);
	void __fastcall DrawWinch(void);
	void __fastcall DrawButton(void);
	void __fastcall Flip(void);
	void __fastcall setdrawdimension(void);
	virtual void __fastcall Paint(void);
	
public:
	__fastcall virtual TVrRotarySwitch(Classes::TComponent* AOwner);
	__fastcall virtual ~TVrRotarySwitch(void);
	__property int PercentDone = {read=GetPercentDone, nodefault};
	
__published:
	__property Vrcontrols::TVrIntMax Radius = {read=FRadius, write=SetRadius, default=40};
	__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
	__property Classes::TStrings* SwitchPositions = {read=FSwitchPositions, write=SetSwitchPositions};
	__property bool ShowLabel = {read=FShowLabel, write=SetShowLabel, default=1};
	__property int SwitchPosition = {read=FSwitchPosition, write=SetSwitchPosition, default=0};
	__property int SwitchAngleStart = {read=FSwitchAngleStart, write=SetSwitchAngleStart, default=0};
	__property int SwitchAngleEnd = {read=FSwitchAngleEnd, write=SetSwitchAngleEnd, default=270};
	__property Graphics::TColor WinchColor = {read=FWinchColor, write=SetWinchColor, default=12632256};
		
	__property Graphics::TColor SwitchColor = {read=FSwitchColor, write=SetSwitchColor, default=12632256
		};
	__property Graphics::TColor ButtonColor = {read=FButtonColor, write=SetButtonColor, default=255};
	__property int LabelsOffset = {read=FLabelsOffset, write=SetLabelsOffset, default=10};
	__property int WinchOffset = {read=FWinchOffset, write=SetWinchOffset, default=10};
	__property Graphics::TFont* Font = {read=FFont, write=SetFont};
	__property TabStop ;
	__property Anchors ;
	__property Color ;
	__property DragCursor ;
	__property DragKind ;
	__property DragMode ;
	__property Enabled ;
	__property Hint ;
	__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 ;
	__property Controls::TKeyEvent OnKeyUp = {read=FOnKeyUp, write=FOnKeyUp};
	__property Controls::TKeyEvent OnKeyDown = {read=FOnKeydown, write=FOnKeydown};
public:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TVrRotarySwitch(HWND ParentWindow) : Vrcontrols::TVrCustomControl(
		ParentWindow) { }
	#pragma option pop
	
};


//-- var, const, procedure ---------------------------------------------------

}	/* namespace Vrrotaryswitch */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Vrrotaryswitch;
#endif
#pragma option pop	// -w-
#pragma option pop	// -Vx

#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif	// VrRotarySwitch

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -