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

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

#ifndef RVScrollHPP
#define RVScrollHPP

#pragma delphiheader begin
#pragma option push -w-
#include <Forms.hpp>	// Pascal unit
#include <Graphics.hpp>	// Pascal unit
#include <Controls.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 Rvscroll
{
//-- type declarations -------------------------------------------------------
#pragma option push -b-
enum TRVPaletteAction { rvpaDoNothing, rvpaAssignPallette, rvpaCreateCopies, rvpaCreateCopiesEx };
#pragma option pop

class DELPHICLASS TRVScroller;
#pragma pack(push, 4)
class PASCALIMPLEMENTATION TRVScroller : public Controls::TCustomControl 
{
	typedef Controls::TCustomControl inherited;
	
private:
	Forms::TFormBorderStyle FBorderStyle;
	bool FTracking;
	bool FFullRedraw;
	bool FVScrollVisible;
	int FVScrollMax;
	int FVScrollPage;
	TRVPaletteAction FDoInPaletteMode;
	HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Message);
	HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
	MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMQueryNewPalette(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall WMPaletteChanged(Messages::TWMPaletteChanged &Message);
	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);
	void __fastcall SetDoInPaletteMode(TRVPaletteAction Value);
	
protected:
	Classes::TNotifyEvent FOnVScrolled;
	Byte FVDisableNoScroll;
	int SmallStep;
	int HPos;
	int VPos;
	int XSize;
	int YSize;
	bool KeyboardScroll;
	HPALETTE RVPalette;
	tagLOGPALETTE *PRVLogPalette;
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	virtual void __fastcall CreateWnd(void);
	DYNAMIC HPALETTE __fastcall GetPalette(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	void __fastcall UpdateScrollBars(int XS, int YS, bool UpdateH, bool UseDNS);
	void __fastcall SetVPos(int p);
	void __fastcall SetHPos(int p);
	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);
	Windows::PLogPalette __fastcall AllocLogPalette(int ColorCount);
	void __fastcall FreeLogPalette(Windows::PLogPalette &lpLogPal);
	DYNAMIC Windows::PLogPalette __fastcall GenerateLogPalette(void);
	DYNAMIC void __fastcall UpdatePaletteInfo(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};
	__property TRVPaletteAction DoInPaletteMode = {read=FDoInPaletteMode, write=SetDoInPaletteMode, nodefault
		};
	
public:
	__fastcall virtual TRVScroller(Classes::TComponent* AOwner);
	__fastcall virtual ~TRVScroller(void);
	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:
	#pragma option push -w-inl
	/* TWinControl.CreateParented */ inline __fastcall TRVScroller(HWND ParentWindow) : Controls::TCustomControl(
		ParentWindow) { }
	#pragma option pop
	
};

#pragma pack(pop)

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

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

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