// Borland C++ Builder
// Copyright (c) 1995, 1998 by Borland International
// All rights reserved

// (DO NOT EDIT: machine generated header) 'RVScroll.pas' rev: 3.00

#ifndef RVScrollHPP
#define RVScrollHPP
#include <Forms.hpp>
#include <Graphics.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Messages.hpp>
#include <Windows.hpp>
#include <SysInit.hpp>
#include <System.hpp>

//-- user supplied -----------------------------------------------------------

namespace Rvscroll
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TRVScroller;
class PASCALIMPLEMENTATION TRVScroller : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	TFormBorderStyle FBorderStyle;
	bool FTracking;
	bool FFullRedraw;
	bool FVScrollVisible;
	int __fastcall GetVScrollPos(void);
	void __fastcall SetVScrollPos(int Pos);
	int __fastcall GetVScrollMax(void);
	void __fastcall SetVScrollVisible(bool vis);
	void __fastcall SetBorderStyle(const Forms::TBorderStyle Value);
	
protected:
	Classes::TNotifyEvent FOnVScrolled;
	Byte FVDisableNoScroll;
	int SmallStep;
	int HPos;
	int VPos;
	int XSize;
	int YSize;
	bool KeyboardScroll;
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall CreateWnd(void);
	void __fastcall UpdateScrollBars(int XS, int YS, bool UpdateH);
	HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Message);
	HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
	void __fastcall SetVPos(int p);
	void __fastcall SetHPos(int p);
	virtual void __fastcall Paint(void);
	void __fastcall ScrollChildren(int dx, int dy);
	void __fastcall UpdateChildren(void);
	virtual void __fastcall AfterVScroll(void);
	virtual void __fastcall AfterHScroll(void);
	DYNAMIC int __fastcall GetDefSmallStep(void);
	__property bool FullRedraw = {read=FFullRedraw, write=FFullRedraw, nodefault};
	__property bool Tracking = {read=FTracking, write=FTracking, nodefault};
	__property bool VScrollVisible = {read=FVScrollVisible, write=SetVScrollVisible, nodefault};
	__property Classes::TNotifyEvent OnVScrolled = {read=FOnVScrolled, write=FOnVScrolled};
	
public:
	__fastcall virtual TRVScroller(Classes::TComponent* AOwner);
	void __fastcall ScrollTo(int y);
	__property int VScrollPos = {read=GetVScrollPos, write=SetVScrollPos, nodefault};
	__property int VScrollMax = {read=GetVScrollMax, nodefault};
	
__published:
	__property Ctl3D ;
	__property ParentCtl3D ;
	__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, nodefault};
	__property Visible ;
	__property TabStop ;
	__property TabOrder ;
	__property Align ;
	__property HelpContext ;
public:
	/* TCustomControl.Destroy */ __fastcall virtual ~TRVScroller(void) { }
	
public:
	/* TWinControl.CreateParented */ __fastcall TRVScroller(HWND ParentWindow) : Controls::TCustomControl(
		ParentWindow) { }
	
};

//-- var, const, procedure ---------------------------------------------------
extern PACKAGE void __fastcall Tag2Y(Controls::TControl* AControl);

}	/* namespace Rvscroll */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Rvscroll;
#endif
//-- end unit ----------------------------------------------------------------
#endif	// RVScroll
