home *** CD-ROM | disk | FTP | other *** search
- //----------------------------------------------------------------------------
- // DBCGrids.hpp - dcc32 generated hdr (DO NOT EDIT) rev: -2
- // From: DBCGrids.pas
- //----------------------------------------------------------------------------
- #ifndef DBCGridsHPP
- #define DBCGridsHPP
- //----------------------------------------------------------------------------
- #ifndef DBHPP
- #include <DB.hpp>
- #endif
-
- #ifndef MenusHPP
- #include <Menus.hpp>
- #endif
-
- #ifndef GraphicsHPP
- #include <Graphics.hpp>
- #endif
-
- #ifndef FormsHPP
- #include <Forms.hpp>
- #endif
-
- #ifndef ControlsHPP
- #include <Controls.hpp>
- #endif
-
- #ifndef ClassesHPP
- #include <Classes.hpp>
- #endif
-
- #ifndef MessagesHPP
- #include <Messages.hpp>
- #endif
-
- #ifndef WindowsHPP
- #include <Windows.hpp>
- #endif
-
- #ifndef SysUtilsHPP
- #include <SysUtils.hpp>
- #endif
-
- #ifndef SystemHPP
- #include <System.hpp>
- #endif
-
- namespace Dbcgrids
- {
- //-- type declarations -------------------------------------------------------
- class __declspec(delphiclass) TDBCtrlGridLink;
- class __declspec(delphiclass) TDBCtrlGrid;
- class __declspec(delphiclass) TDBCtrlPanel;
- class __declspec(pascalimplementation) TDBCtrlPanel : public Controls::TWinControl
- {
- typedef TDBCtrlPanel ThisClass;
- typedef Controls::TWinControl inherited;
-
- private:
- TDBCtrlGrid *FDBCtrlGrid;
- MESSAGE void __fastcall CMControlListChange(Controls::TCMControlListChange &Message);
- MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
- MESSAGE void __fastcall WMNCHitTest(Messages::TWMNCHitTest &Message);
-
- protected:
- virtual void __fastcall PaintWindow(System::Integer DC);
-
- public:
- __fastcall TDBCtrlPanel(TDBCtrlGrid *DBCtrlGrid);
- public:
- /* !! TWinControl.Destroy */ __fastcall virtual ~TDBCtrlPanel(void) { }
-
- };
-
- enum TDBCtrlGridOrientation { goVertical, goHorizontal };
-
- enum TDBCtrlGridBorder { gbNone, gbRaised };
-
- typedef void __fastcall (__closure *TPaintPanelEvent)(TDBCtrlGrid *DBCtrlGrid, System::Integer Index
- );
-
- enum TDBCtrlGridKey { gkNull, gkEditMode, gkPriorTab, gkNextTab, gkLeft, gkRight, gkUp, gkDown, gkScrollUp,
- gkScrollDown, gkPageUp, gkPageDown, gkHome, gkEnd, gkInsert, gkAppend, gkDelete, gkCancel };
-
- class __declspec(pascalimplementation) TDBCtrlGrid : public Controls::TWinControl
- {
- typedef TDBCtrlGrid ThisClass;
- typedef Controls::TWinControl inherited;
-
- private:
- TDBCtrlGridLink *FDataLink;
- TDBCtrlPanel *FPanel;
- Graphics::TCanvas *FCanvas;
- System::Integer FColCount;
- System::Integer FRowCount;
- System::Integer FPanelWidth;
- System::Integer FPanelHeight;
- System::Integer FPanelIndex;
- System::Integer FPanelCount;
- System::Integer FBitmapCount;
- System::Integer FPanelBitmap;
- System::Integer FSaveBitmap;
- System::Integer FPanelDC;
- TDBCtrlGridOrientation FOrientation;
- TDBCtrlGridBorder FPanelBorder;
- System::Boolean FAllowInsert;
- System::Boolean FAllowDelete;
- System::Boolean FShowFocus;
- System::Boolean FFocused;
- TPaintPanelEvent FOnPaintPanel;
- System::Boolean __fastcall AcquireFocus(void);
- void __fastcall AdjustSize(void);
- void __fastcall CreatePanelBitmap(void);
- void __fastcall DataSetChanged(System::Boolean Reset);
- void __fastcall DestroyPanelBitmap(void);
- void __fastcall DrawPanel(System::Integer DC, System::Integer Index);
- void __fastcall DrawPanelBackground(System::Integer DC, const Windows::TRect &R, System::Boolean Erase
- );
- Db::TDataSource *__fastcall GetDataSource(void);
- System::Boolean __fastcall GetEditMode(void);
- Windows::TRect __fastcall GetPanelBounds(System::Integer Index);
- System::Boolean __fastcall PointInPanel(const Windows::TSmallPoint P);
- void __fastcall Reset(void);
- void __fastcall Scroll(System::Integer Inc, System::Boolean ScrollLock);
- void __fastcall ScrollMessage(Messages::TWMScroll &Message);
- void __fastcall SelectNext(System::Boolean GoForward);
- void __fastcall SetColCount(System::Integer Value);
- void __fastcall SetDataSource(Db::TDataSource *Value);
- void __fastcall SetEditMode(System::Boolean Value);
- void __fastcall SetOrientation(TDBCtrlGridOrientation Value);
- void __fastcall SetPanelBorder(TDBCtrlGridBorder Value);
- void __fastcall SetPanelHeight(System::Integer Value);
- void __fastcall SetPanelIndex(System::Integer Value);
- void __fastcall SetPanelWidth(System::Integer Value);
- void __fastcall SetRowCount(System::Integer Value);
- void __fastcall UpdateDataLinks(Controls::TControl *Control, System::Boolean Inserting);
- MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
- MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
- MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Message);
- MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
- MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
- MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
- MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
- MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
- MESSAGE void __fastcall CMChildKey(Controls::TCMChildKey &Message);
-
- protected:
- virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
- virtual void __fastcall CreateWnd(void);
- virtual Classes::TComponent *__fastcall GetChildParent(void);
- virtual void __fastcall GetChildren(Classes::TGetChildProc Proc);
- virtual void __fastcall PaintPanel(System::Integer Index);
- virtual void __fastcall PaintWindow(System::Integer DC);
- virtual void __fastcall ReadState(Classes::TReader *Reader);
- virtual void __fastcall SetBounds(System::Integer ALeft, System::Integer ATop, System::Integer AWidth
- , System::Integer AHeight);
-
- public:
- __fastcall virtual TDBCtrlGrid(Classes::TComponent *AOwner);
- __fastcall virtual ~TDBCtrlGrid(void);
- void __fastcall DoKey(TDBCtrlGridKey Key);
- virtual void __fastcall GetTabOrderList(Classes::TList *List);
- virtual void __fastcall KeyDown(System::Word &Key, Classes::TShiftState Shift);
- __property Graphics::TCanvas * Canvas = {read=FCanvas, nodefault};
- __property System::Boolean EditMode = {read=GetEditMode, write=SetEditMode, nodefault};
- __property System::Integer PanelCount = {read=FPanelCount, nodefault};
- __property System::Integer PanelIndex = {read=FPanelIndex, write=SetPanelIndex, nodefault};
-
- __published:
- __property System::Boolean AllowDelete = {read=FAllowDelete, write=FAllowDelete, default=1};
- __property System::Boolean AllowInsert = {read=FAllowInsert, write=FAllowInsert, default=1};
- __property System::Integer ColCount = {read=FColCount, write=SetColCount, nodefault};
- __property Color ;
- __property Db::TDataSource * DataSource = {read=GetDataSource, write=SetDataSource, nodefault};
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Font ;
- __property TDBCtrlGridOrientation Orientation = {read=FOrientation, write=SetOrientation, default=0
- };
- __property TDBCtrlGridBorder PanelBorder = {read=FPanelBorder, write=SetPanelBorder, default=1};
- __property System::Integer PanelHeight = {read=FPanelHeight, write=SetPanelHeight, nodefault};
- __property System::Integer PanelWidth = {read=FPanelWidth, write=SetPanelWidth, nodefault};
- __property ParentColor ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property TabOrder ;
- __property TabStop ;
- __property System::Integer RowCount = {read=FRowCount, write=SetRowCount, nodefault};
- __property System::Boolean ShowFocus = {read=FShowFocus, write=FShowFocus, default=1};
- __property ShowHint ;
- __property Visible ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnMouseDown ;
- __property OnMouseMove ;
- __property OnMouseUp ;
- __property TPaintPanelEvent OnPaintPanel = {read=FOnPaintPanel, write=FOnPaintPanel};
- __property OnStartDrag ;
- };
-
- class __declspec(pascalimplementation) TDBCtrlGridLink : public Db::TDataLink
- {
- typedef TDBCtrlGridLink ThisClass;
- typedef Db::TDataLink inherited;
-
- private:
- TDBCtrlGrid *FDBCtrlGrid;
-
- protected:
- virtual void __fastcall ActiveChanged(void);
- virtual void __fastcall DataSetChanged(void);
-
- public:
- __fastcall TDBCtrlGridLink(TDBCtrlGrid *DBCtrlGrid);
- public:
- /* !! TDataLink.Destroy */ __fastcall virtual ~TDBCtrlGridLink(void) { }
-
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Dbcgrids */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Dbcgrids;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // DBCGrids
-