home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 1997 May
/
Pcwk0597.iso
/
borland
/
cb
/
setup
/
cbuilder
/
data.z
/
EXTCTRLS.HPP
< prev
next >
Wrap
C/C++ Source or Header
|
1997-02-28
|
20KB
|
603 lines
//----------------------------------------------------------------------------
// ExtCtrls.hpp - bcbdcc32 generated hdr (DO NOT EDIT) rev: 0
// From: ExtCtrls.pas
//----------------------------------------------------------------------------
#ifndef ExtCtrlsHPP
#define ExtCtrlsHPP
//----------------------------------------------------------------------------
#include <StdCtrls.hpp>
#include <Graphics.hpp>
#include <Menus.hpp>
#include <Forms.hpp>
#include <Controls.hpp>
#include <Classes.hpp>
#include <SysUtils.hpp>
#include <Windows.hpp>
#include <Messages.hpp>
#include <System.hpp>
#pragma warn -par
#pragma warn -hid
#pragma warn -inl
namespace Extctrls
{
//-- type declarations -------------------------------------------------------
enum TShapeType { stRectangle, stSquare, stRoundRect, stRoundSquare, stEllipse, stCircle };
class __declspec(delphiclass) TShape;
class __declspec(pascalimplementation) TShape : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
TShapeType FShape;
Byte FReserved;
Graphics::TPen* FPen;
Graphics::TBrush* FBrush;
void __fastcall SetBrush(Graphics::TBrush* Value);
void __fastcall SetPen(Graphics::TPen* Value);
void __fastcall SetShape(TShapeType Value);
protected:
virtual void __fastcall Paint(void);
public:
__fastcall virtual TShape(Classes::TComponent* AOwner);
__fastcall virtual ~TShape(void);
__published:
void __fastcall StyleChanged(System::TObject* Sender);
__property Graphics::TBrush* Brush = {read=FBrush, write=SetBrush, nodefault};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property ParentShowHint ;
__property Graphics::TPen* Pen = {read=FPen, write=SetPen, nodefault};
__property TShapeType Shape = {read=FShape, write=SetShape, default=0};
__property ShowHint ;
__property Visible ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
};
class __declspec(delphiclass) TPaintBox;
class __declspec(pascalimplementation) TPaintBox : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
Classes::TNotifyEvent FOnPaint;
protected:
virtual void __fastcall Paint(void);
public:
__fastcall virtual TPaintBox(Classes::TComponent* AOwner);
__property Canvas ;
__published:
__property Align ;
__property Color ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property Classes::TNotifyEvent OnPaint = {read=FOnPaint, write=FOnPaint};
__property OnStartDrag ;
public:
/* TGraphicControl.Destroy */ __fastcall virtual ~TPaintBox(void) { }
};
class __declspec(delphiclass) TImage;
class __declspec(pascalimplementation) TImage : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
Graphics::TPicture* FPicture;
bool FAutoSize;
bool FStretch;
bool FCenter;
Byte FReserved;
Graphics::TCanvas* __fastcall GetCanvas(void);
void __fastcall PictureChanged(System::TObject* Sender);
void __fastcall SetAutoSize(bool Value);
void __fastcall SetCenter(bool Value);
void __fastcall SetPicture(Graphics::TPicture* Value);
void __fastcall SetStretch(bool Value);
protected:
virtual HPALETTE __fastcall GetPalette(void);
virtual void __fastcall Paint(void);
public:
__fastcall virtual TImage(Classes::TComponent* AOwner);
__fastcall virtual ~TImage(void);
__property Graphics::TCanvas* Canvas = {read=GetCanvas, nodefault};
__published:
__property Align ;
__property bool AutoSize = {read=FAutoSize, write=SetAutoSize, default=0};
__property bool Center = {read=FCenter, write=SetCenter, default=0};
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property ParentShowHint ;
__property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture, nodefault};
__property PopupMenu ;
__property ShowHint ;
__property bool Stretch = {read=FStretch, write=SetStretch, default=0};
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDrag ;
};
enum TBevelStyle { bsLowered, bsRaised };
enum TBevelShape { bsBox, bsFrame, bsTopLine, bsBottomLine, bsLeftLine, bsRightLine };
class __declspec(delphiclass) TBevel;
class __declspec(pascalimplementation) TBevel : public Controls::TGraphicControl
{
typedef Controls::TGraphicControl inherited;
private:
TBevelStyle FStyle;
TBevelShape FShape;
void __fastcall SetStyle(TBevelStyle Value);
void __fastcall SetShape(TBevelShape Value);
protected:
virtual void __fastcall Paint(void);
public:
__fastcall virtual TBevel(Classes::TComponent* AOwner);
__published:
__property Align ;
__property ParentShowHint ;
__property TBevelShape Shape = {read=FShape, write=SetShape, default=0};
__property ShowHint ;
__property TBevelStyle Style = {read=FStyle, write=SetStyle, default=0};
__property Visible ;
public:
/* TGraphicControl.Destroy */ __fastcall virtual ~TBevel(void) { }
};
class __declspec(delphiclass) TTimer;
class __declspec(pascalimplementation) TTimer : public Classes::TComponent
{
typedef Classes::TComponent inherited;
private:
bool FEnabled;
Byte FReserved;
Cardinal FInterval;
HWND FWindowHandle;
Classes::TNotifyEvent FOnTimer;
void __fastcall UpdateTimer(void);
void __fastcall SetEnabled(bool Value);
void __fastcall SetInterval(Cardinal Value);
void __fastcall SetOnTimer(Classes::TNotifyEvent Value);
void __fastcall WndProc(Messages::TMessage &Msg);
protected:
virtual void __fastcall Timer(void);
public:
__fastcall virtual TTimer(Classes::TComponent* AOwner);
__fastcall virtual ~TTimer(void);
__published:
__property bool Enabled = {read=FEnabled, write=SetEnabled, default=1};
__property Cardinal Interval = {read=FInterval, write=SetInterval, default=1000};
__property Classes::TNotifyEvent OnTimer = {read=FOnTimer, write=SetOnTimer};
};
enum TPanelBevel { bvNone, bvLowered, bvRaised };
typedef int TBevelWidth;
typedef int TBorderWidth;
class __declspec(delphiclass) TCustomPanel;
class __declspec(pascalimplementation) TCustomPanel : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
TPanelBevel FBevelInner;
TPanelBevel FBevelOuter;
TBevelWidth FBevelWidth;
TBorderWidth FBorderWidth;
TFormBorderStyle FBorderStyle;
bool FFullRepaint;
bool FLocked;
Classes::TNotifyEvent FOnResize;
TAlignment FAlignment;
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMIsToolControl(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
void __fastcall SetAlignment(Classes::TAlignment Value);
void __fastcall SetBevelInner(TPanelBevel Value);
void __fastcall SetBevelOuter(TPanelBevel Value);
void __fastcall SetBevelWidth(TBevelWidth Value);
void __fastcall SetBorderWidth(TBorderWidth Value);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall ReadData(Classes::TReader* Reader);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall AlignControls(Controls::TControl* AControl, Windows::TRect &Rect);
virtual void __fastcall Paint(void);
virtual void __fastcall Resize(void);
__property Classes::TAlignment Alignment = {read=FAlignment, write=SetAlignment, default=2};
__property TPanelBevel BevelInner = {read=FBevelInner, write=SetBevelInner, default=0};
__property TPanelBevel BevelOuter = {read=FBevelOuter, write=SetBevelOuter, default=2};
__property TBevelWidth BevelWidth = {read=FBevelWidth, write=SetBevelWidth, default=1};
__property TBorderWidth BorderWidth = {read=FBorderWidth, write=SetBorderWidth, default=0};
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=0};
__property Color ;
__property bool FullRepaint = {read=FFullRepaint, write=FFullRepaint, default=1};
__property bool Locked = {read=FLocked, write=FLocked, default=0};
__property ParentColor ;
__property Classes::TNotifyEvent OnResize = {read=FOnResize, write=FOnResize};
public:
__fastcall virtual TCustomPanel(Classes::TComponent* AOwner);
public:
/* TCustomControl.Destroy */ __fastcall virtual ~TCustomPanel(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TCustomPanel(HWND ParentWindow) : Controls::TCustomControl(
ParentWindow) { }
};
class __declspec(delphiclass) TPanel;
class __declspec(pascalimplementation) TPanel : public TCustomPanel
{
typedef TCustomPanel inherited;
__published:
__property Align ;
__property Alignment ;
__property BevelInner ;
__property BevelOuter ;
__property BevelWidth ;
__property BorderWidth ;
__property BorderStyle ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Caption ;
__property Color ;
__property Ctl3D ;
__property Font ;
__property Locked ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnResize ;
__property OnStartDrag ;
public:
/* TCustomPanel.Create */ __fastcall virtual TPanel(Classes::TComponent* AOwner) : Extctrls::TCustomPanel(
AOwner) { }
public:
/* TCustomControl.Destroy */ __fastcall virtual ~TPanel(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TPanel(HWND ParentWindow) : Extctrls::TCustomPanel(ParentWindow
) { }
};
class __declspec(delphiclass) TPage;
class __declspec(pascalimplementation) TPage : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Message);
protected:
virtual void __fastcall ReadState(Classes::TReader* Reader);
virtual void __fastcall Paint(void);
public:
__fastcall virtual TPage(Classes::TComponent* AOwner);
__published:
__property Caption ;
__property Height = {stored=false};
__property TabOrder = {stored=false, default=-1};
__property Visible = {stored=false, default=1};
__property Width = {stored=false};
public:
/* TCustomControl.Destroy */ __fastcall virtual ~TPage(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TPage(HWND ParentWindow) : Controls::TCustomControl(ParentWindow
) { }
};
class __declspec(delphiclass) TNotebook;
class __declspec(pascalimplementation) TNotebook : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
Classes::TList* FPageList;
Classes::TStrings* FAccess;
int FPageIndex;
Classes::TStringList* FOldList;
Classes::TNotifyEvent FOnPageChanged;
void __fastcall SetPages(Classes::TStrings* Value);
void __fastcall SetActivePage(const System::AnsiString Value);
System::AnsiString __fastcall GetActivePage(void);
void __fastcall SetPageIndex(int Value);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual Classes::TComponent* __fastcall GetChildOwner(void);
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
virtual void __fastcall ReadState(Classes::TReader* Reader);
virtual void __fastcall ShowControl(Controls::TControl* AControl);
public:
__fastcall virtual TNotebook(Classes::TComponent* AOwner);
__fastcall virtual ~TNotebook(void);
__published:
__property System::AnsiString ActivePage = {read=GetActivePage, write=SetActivePage, stored=false,
nodefault};
__property Align ;
__property Color ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Font ;
__property Enabled ;
__property int PageIndex = {read=FPageIndex, write=SetPageIndex, default=0};
__property Classes::TStrings* Pages = {read=FAccess, write=SetPages, stored=false, nodefault};
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property Classes::TNotifyEvent OnPageChanged = {read=FOnPageChanged, write=FOnPageChanged};
__property OnStartDrag ;
public:
/* TWinControl.CreateParented */ __fastcall TNotebook(HWND ParentWindow) : Controls::TCustomControl(
ParentWindow) { }
};
typedef void __fastcall (__closure *TSectionEvent)(System::TObject* Sender, int ASection, int AWidth
);
class __declspec(delphiclass) THeader;
class __declspec(pascalimplementation) THeader : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
Classes::TStrings* FSections;
int FSectionCount;
POINT FHitTest;
bool FCanResize;
bool FAllowResize;
int FResizeSection;
TFormBorderStyle FBorderStyle;
Byte FReserved;
int FMouseOffset;
TSectionEvent FOnSizing;
TSectionEvent FOnSized;
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall FreeSections(void);
void __fastcall SetSections(Classes::TStrings* Strings);
int __fastcall GetWidth(int X);
HIDESBASE void __fastcall SetWidth(int X, int Value);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Msg);
HIDESBASE MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Msg);
virtual void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
int Y);
virtual void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
virtual void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int
Y);
protected:
virtual void __fastcall Paint(void);
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall Sizing(int ASection, int AWidth);
virtual void __fastcall Sized(int ASection, int AWidth);
public:
__fastcall virtual THeader(Classes::TComponent* AOwner);
__fastcall virtual ~THeader(void);
__property int SectionWidth[int X] = {read=GetWidth, write=SetWidth};
__published:
__property Align ;
__property bool AllowResize = {read=FAllowResize, write=FAllowResize, default=1};
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property Enabled ;
__property Font ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property Classes::TStrings* Sections = {read=FSections, write=SetSections, nodefault};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property TSectionEvent OnSizing = {read=FOnSizing, write=FOnSizing};
__property TSectionEvent OnSized = {read=FOnSized, write=FOnSized};
public:
/* TWinControl.CreateParented */ __fastcall THeader(HWND ParentWindow) : Controls::TCustomControl(ParentWindow
) { }
};
class __declspec(delphiclass) TCustomRadioGroup;
class __declspec(pascalimplementation) TCustomRadioGroup : public Stdctrls::TCustomGroupBox
{
typedef Stdctrls::TCustomGroupBox inherited;
private:
Classes::TList* FButtons;
Classes::TStrings* FItems;
int FItemIndex;
int FColumns;
bool FReading;
bool FUpdating;
void __fastcall ArrangeButtons(void);
void __fastcall ButtonClick(System::TObject* Sender);
void __fastcall ItemsChange(System::TObject* Sender);
void __fastcall SetButtonCount(int Value);
void __fastcall SetColumns(int Value);
void __fastcall SetItemIndex(int Value);
void __fastcall SetItems(Classes::TStrings* Value);
void __fastcall UpdateButtons(void);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
protected:
virtual void __fastcall ReadState(Classes::TReader* Reader);
virtual bool __fastcall CanModify(void);
virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
__property int Columns = {read=FColumns, write=SetColumns, default=1};
__property int ItemIndex = {read=FItemIndex, write=SetItemIndex, default=-1};
__property Classes::TStrings* Items = {read=FItems, write=SetItems, nodefault};
public:
__fastcall virtual TCustomRadioGroup(Classes::TComponent* AOwner);
__fastcall virtual ~TCustomRadioGroup(void);
public:
/* TWinControl.CreateParented */ __fastcall TCustomRadioGroup(HWND ParentWindow) : Stdctrls::TCustomGroupBox(
ParentWindow) { }
};
class __declspec(delphiclass) TRadioGroup;
class __declspec(pascalimplementation) TRadioGroup : public TCustomRadioGroup
{
typedef TCustomRadioGroup inherited;
__published:
__property Align ;
__property Caption ;
__property Color ;
__property Columns ;
__property Ctl3D ;
__property DragCursor ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ItemIndex ;
__property Items ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnStartDrag ;
public:
/* TCustomRadioGroup.Create */ __fastcall virtual TRadioGroup(Classes::TComponent* AOwner) : Extctrls::
TCustomRadioGroup(AOwner) { }
/* TCustomRadioGroup.Destroy */ __fastcall virtual ~TRadioGroup(void) { }
public:
/* TWinControl.CreateParented */ __fastcall TRadioGroup(HWND ParentWindow) : Extctrls::TCustomRadioGroup(
ParentWindow) { }
};
//-- var, const, procedure ---------------------------------------------------
extern void __fastcall Frame3D(Graphics::TCanvas* Canvas, Windows::TRect &Rect, Graphics::TColor TopColor
, Graphics::TColor BottomColor, int Width);
} /* namespace Extctrls */
#pragma warn .par
#pragma warn .hid
#pragma warn .inl
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Extctrls;
#endif
//-- end unit ----------------------------------------------------------------
#endif // ExtCtrls