home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magazyn Internet 2000 May
/
MICD_2000_05.iso
/
CBuilder5
/
INSTALL
/
DATA1.CAB
/
Program_Built_Files
/
Include
/
Vcl
/
dbctrls.hpp
< prev
next >
Wrap
C/C++ Source or Header
|
2000-02-01
|
57KB
|
1,626 lines
// Borland C++ Builder
// Copyright (c) 1995, 1999 by Borland International
// All rights reserved
// (DO NOT EDIT: machine generated header) 'DBCtrls.pas' rev: 5.00
#ifndef DBCtrlsHPP
#define DBCtrlsHPP
#pragma delphiheader begin
#pragma option push -w-
#pragma option push -Vx
#include <Db.hpp> // Pascal unit
#include <ComCtrls.hpp> // Pascal unit
#include <Buttons.hpp> // Pascal unit
#include <Mask.hpp> // Pascal unit
#include <ExtCtrls.hpp> // Pascal unit
#include <StdCtrls.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <SysUtils.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <SysInit.hpp> // Pascal unit
#include <System.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Dbctrls
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TFieldDataLink;
class PASCALIMPLEMENTATION TFieldDataLink : public Db::TDataLink
{
typedef Db::TDataLink inherited;
private:
Db::TField* FField;
AnsiString FFieldName;
Classes::TComponent* FControl;
bool FEditing;
bool FModified;
Classes::TNotifyEvent FOnDataChange;
Classes::TNotifyEvent FOnEditingChange;
Classes::TNotifyEvent FOnUpdateData;
Classes::TNotifyEvent FOnActiveChange;
bool __fastcall GetCanModify(void);
HIDESBASE void __fastcall SetEditing(bool Value);
void __fastcall SetField(Db::TField* Value);
void __fastcall SetFieldName(const AnsiString Value);
void __fastcall UpdateField(void);
void __fastcall UpdateRightToLeft(void);
protected:
virtual void __fastcall ActiveChanged(void);
virtual void __fastcall EditingChanged(void);
virtual void __fastcall FocusControl(Db::TFieldRef Field);
virtual void __fastcall LayoutChanged(void);
virtual void __fastcall RecordChanged(Db::TField* Field);
virtual void __fastcall UpdateData(void);
public:
__fastcall TFieldDataLink(void);
HIDESBASE bool __fastcall Edit(void);
void __fastcall Modified(void);
void __fastcall Reset(void);
__property bool CanModify = {read=GetCanModify, nodefault};
__property Classes::TComponent* Control = {read=FControl, write=FControl};
__property bool Editing = {read=FEditing, nodefault};
__property Db::TField* Field = {read=FField};
__property AnsiString FieldName = {read=FFieldName, write=SetFieldName};
__property Classes::TNotifyEvent OnDataChange = {read=FOnDataChange, write=FOnDataChange};
__property Classes::TNotifyEvent OnEditingChange = {read=FOnEditingChange, write=FOnEditingChange};
__property Classes::TNotifyEvent OnUpdateData = {read=FOnUpdateData, write=FOnUpdateData};
__property Classes::TNotifyEvent OnActiveChange = {read=FOnActiveChange, write=FOnActiveChange};
public:
#pragma option push -w-inl
/* TDataLink.Destroy */ inline __fastcall virtual ~TFieldDataLink(void) { }
#pragma option pop
};
class DELPHICLASS TPaintControl;
class PASCALIMPLEMENTATION TPaintControl : public System::TObject
{
typedef System::TObject inherited;
private:
Controls::TWinControl* FOwner;
AnsiString FClassName;
HWND FHandle;
void *FObjectInstance;
void *FDefWindowProc;
bool FCtl3dButton;
HWND __fastcall GetHandle(void);
void __fastcall SetCtl3DButton(bool Value);
void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall TPaintControl(Controls::TWinControl* AOwner, const AnsiString ClassName);
__fastcall virtual ~TPaintControl(void);
void __fastcall DestroyHandle(void);
__property bool Ctl3DButton = {read=FCtl3dButton, write=SetCtl3DButton, nodefault};
__property HWND Handle = {read=GetHandle, nodefault};
};
class DELPHICLASS TDBEdit;
class PASCALIMPLEMENTATION TDBEdit : public Mask::TCustomMaskEdit
{
typedef Mask::TCustomMaskEdit inherited;
private:
TFieldDataLink* FDataLink;
Controls::TControlCanvas* FCanvas;
Classes::TAlignment FAlignment;
bool FFocused;
void __fastcall ActiveChange(System::TObject* Sender);
void __fastcall DataChange(System::TObject* Sender);
void __fastcall EditingChange(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
Windows::TPoint __fastcall GetTextMargins();
void __fastcall ResetMaxLength(void);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetFocused(bool Value);
HIDESBASE void __fastcall SetReadOnly(bool Value);
void __fastcall UpdateData(System::TObject* Sender);
HIDESBASE MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
MESSAGE void __fastcall WMUndo(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
DYNAMIC void __fastcall Change(void);
virtual bool __fastcall EditCanModify(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall Reset(void);
public:
__fastcall virtual TDBEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TDBEdit(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Db::TField* Field = {read=GetField};
__published:
__property Anchors ;
__property AutoSelect ;
__property AutoSize ;
__property BiDiMode ;
__property BorderStyle ;
__property CharCase ;
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property MaxLength ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PasswordChar ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnChange ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBEdit(HWND ParentWindow) : Mask::TCustomMaskEdit(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TDBText;
class PASCALIMPLEMENTATION TDBText : public Stdctrls::TCustomLabel
{
typedef Stdctrls::TCustomLabel inherited;
private:
TFieldDataLink* FDataLink;
void __fastcall DataChange(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
AnsiString __fastcall GetFieldText();
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
virtual AnsiString __fastcall GetLabelText();
virtual void __fastcall Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall SetAutoSize(bool Value);
public:
__fastcall virtual TDBText(Classes::TComponent* AOwner);
__fastcall virtual ~TDBText(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Db::TField* Field = {read=GetField};
__published:
__property Align ;
__property Alignment ;
__property Anchors ;
__property AutoSize ;
__property BiDiMode ;
__property Color ;
__property Constraints ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property Transparent ;
__property ShowHint ;
__property Visible ;
__property WordWrap ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
};
class DELPHICLASS TDBCheckBox;
class PASCALIMPLEMENTATION TDBCheckBox : public Stdctrls::TCustomCheckBox
{
typedef Stdctrls::TCustomCheckBox inherited;
private:
TFieldDataLink* FDataLink;
AnsiString FValueCheck;
AnsiString FValueUncheck;
TPaintControl* FPaintControl;
void __fastcall DataChange(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
Stdctrls::TCheckBoxState __fastcall GetFieldState(void);
bool __fastcall GetReadOnly(void);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall SetValueCheck(const AnsiString Value);
void __fastcall SetValueUncheck(const AnsiString Value);
void __fastcall UpdateData(System::TObject* Sender);
bool __fastcall ValueMatch(const AnsiString ValueList, const AnsiString Value);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
virtual void __fastcall Toggle(void);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall virtual TDBCheckBox(Classes::TComponent* AOwner);
__fastcall virtual ~TDBCheckBox(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Checked ;
__property Db::TField* Field = {read=GetField};
__property State ;
__published:
__property Action ;
__property Alignment ;
__property AllowGrayed ;
__property Anchors ;
__property BiDiMode ;
__property Caption ;
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property AnsiString ValueChecked = {read=FValueCheck, write=SetValueCheck};
__property AnsiString ValueUnchecked = {read=FValueUncheck, write=SetValueUncheck};
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBCheckBox(HWND ParentWindow) : Stdctrls::TCustomCheckBox(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TDBComboBox;
class PASCALIMPLEMENTATION TDBComboBox : public Stdctrls::TCustomComboBox
{
typedef Stdctrls::TCustomComboBox inherited;
private:
TFieldDataLink* FDataLink;
TPaintControl* FPaintControl;
void __fastcall DataChange(System::TObject* Sender);
void __fastcall EditingChange(System::TObject* Sender);
AnsiString __fastcall GetComboText();
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
void __fastcall SetComboText(const AnsiString Value);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetEditReadOnly(void);
HIDESBASE void __fastcall SetItems(Classes::TStrings* Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall UpdateData(System::TObject* Sender);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
protected:
DYNAMIC void __fastcall Change(void);
DYNAMIC void __fastcall Click(void);
virtual void __fastcall ComboWndProc(Messages::TMessage &Message, HWND ComboWnd, void * ComboProc);
virtual void __fastcall CreateWnd(void);
DYNAMIC void __fastcall DropDown(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall SetStyle(Stdctrls::TComboBoxStyle Value);
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall virtual TDBComboBox(Classes::TComponent* AOwner);
__fastcall virtual ~TDBComboBox(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Db::TField* Field = {read=GetField};
__property Text ;
__published:
__property Style ;
__property Anchors ;
__property BiDiMode ;
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property DropDownCount ;
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property ItemHeight ;
__property Items = {write=SetItems};
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ShowHint ;
__property Sorted ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnChange ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDrawItem ;
__property OnDropDown ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMeasureItem ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBComboBox(HWND ParentWindow) : Stdctrls::TCustomComboBox(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TDBListBox;
class PASCALIMPLEMENTATION TDBListBox : public Stdctrls::TCustomListBox
{
typedef Stdctrls::TCustomListBox inherited;
private:
TFieldDataLink* FDataLink;
void __fastcall DataChange(System::TObject* Sender);
void __fastcall UpdateData(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetReadOnly(bool Value);
HIDESBASE void __fastcall SetItems(Classes::TStrings* Value);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
protected:
DYNAMIC void __fastcall Click(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
public:
__fastcall virtual TDBListBox(Classes::TComponent* AOwner);
__fastcall virtual ~TDBListBox(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Db::TField* Field = {read=GetField};
__published:
__property Align ;
__property Anchors ;
__property BiDiMode ;
__property BorderStyle ;
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property IntegralHeight ;
__property ItemHeight ;
__property Items = {write=SetItems};
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ShowHint ;
__property Style ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnDrawItem ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMeasureItem ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBListBox(HWND ParentWindow) : Stdctrls::TCustomListBox(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TDBRadioGroup;
class PASCALIMPLEMENTATION TDBRadioGroup : public Extctrls::TCustomRadioGroup
{
typedef Extctrls::TCustomRadioGroup inherited;
private:
TFieldDataLink* FDataLink;
AnsiString FValue;
Classes::TStrings* FValues;
bool FInSetValue;
Classes::TNotifyEvent FOnChange;
void __fastcall DataChange(System::TObject* Sender);
void __fastcall UpdateData(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
AnsiString __fastcall GetButtonValue(int Index);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall SetValue(const AnsiString Value);
HIDESBASE void __fastcall SetItems(Classes::TStrings* Value);
void __fastcall SetValues(Classes::TStrings* Value);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
protected:
DYNAMIC void __fastcall Change(void);
DYNAMIC void __fastcall Click(void);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual bool __fastcall CanModify(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
__property TFieldDataLink* DataLink = {read=FDataLink};
public:
__fastcall virtual TDBRadioGroup(Classes::TComponent* AOwner);
__fastcall virtual ~TDBRadioGroup(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Db::TField* Field = {read=GetField};
__property ItemIndex ;
__property AnsiString Value = {read=FValue, write=SetValue};
__published:
__property Align ;
__property Anchors ;
__property BiDiMode ;
__property Caption ;
__property Color ;
__property Columns ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property Items = {write=SetItems};
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Classes::TStrings* Values = {read=FValues, write=SetValues};
__property Visible ;
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property OnClick ;
__property OnContextPopup ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBRadioGroup(HWND ParentWindow) : Extctrls::TCustomRadioGroup(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TDBMemo;
class PASCALIMPLEMENTATION TDBMemo : public Stdctrls::TCustomMemo
{
typedef Stdctrls::TCustomMemo inherited;
private:
TFieldDataLink* FDataLink;
bool FAutoDisplay;
bool FFocused;
bool FMemoLoaded;
TPaintControl* FPaintControl;
void __fastcall DataChange(System::TObject* Sender);
void __fastcall EditingChange(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
HIDESBASE void __fastcall SetReadOnly(bool Value);
void __fastcall SetAutoDisplay(bool Value);
void __fastcall SetFocused(bool Value);
void __fastcall UpdateData(System::TObject* Sender);
MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
MESSAGE void __fastcall WMUndo(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
DYNAMIC void __fastcall Change(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall WndProc(Messages::TMessage &Message);
public:
__fastcall virtual TDBMemo(Classes::TComponent* AOwner);
__fastcall virtual ~TDBMemo(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
virtual void __fastcall LoadMemo(void);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Db::TField* Field = {read=GetField};
__published:
__property Align ;
__property Alignment ;
__property Anchors ;
__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, default=1};
__property BiDiMode ;
__property BorderStyle ;
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property MaxLength ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ScrollBars ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property WantTabs ;
__property WordWrap ;
__property OnChange ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBMemo(HWND ParentWindow) : Stdctrls::TCustomMemo(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TDBImage;
class PASCALIMPLEMENTATION TDBImage : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
TFieldDataLink* FDataLink;
Graphics::TPicture* FPicture;
Forms::TFormBorderStyle FBorderStyle;
bool FAutoDisplay;
bool FStretch;
bool FCenter;
bool FPictureLoaded;
bool FQuickDraw;
void __fastcall DataChange(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
void __fastcall PictureChanged(System::TObject* Sender);
void __fastcall SetAutoDisplay(bool Value);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetCenter(bool Value);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetPicture(Graphics::TPicture* Value);
void __fastcall SetReadOnly(bool Value);
void __fastcall SetStretch(bool Value);
void __fastcall UpdateData(System::TObject* Sender);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
MESSAGE void __fastcall CMTextChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
MESSAGE void __fastcall WMCopy(Messages::TMessage &Message);
MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TMessage &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
DYNAMIC HPALETTE __fastcall GetPalette(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall Paint(void);
public:
__fastcall virtual TDBImage(Classes::TComponent* AOwner);
__fastcall virtual ~TDBImage(void);
void __fastcall CopyToClipboard(void);
void __fastcall CutToClipboard(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
void __fastcall LoadPicture(void);
void __fastcall PasteFromClipboard(void);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
__property Db::TField* Field = {read=GetField};
__property Graphics::TPicture* Picture = {read=FPicture, write=SetPicture};
__published:
__property Align ;
__property Anchors ;
__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, default=1};
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property bool Center = {read=FCenter, write=SetCenter, default=1};
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property bool QuickDraw = {read=FQuickDraw, write=FQuickDraw, default=1};
__property ShowHint ;
__property bool Stretch = {read=FStretch, write=SetStretch, default=0};
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBImage(HWND ParentWindow) : Controls::TCustomControl(
ParentWindow) { }
#pragma option pop
};
#pragma option push -b-
enum TNavGlyph { ngEnabled, ngDisabled };
#pragma option pop
#pragma option push -b-
enum TNavigateBtn { nbFirst, nbPrior, nbNext, nbLast, nbInsert, nbDelete, nbEdit, nbPost, nbCancel,
nbRefresh };
#pragma option pop
typedef Set<TNavigateBtn, nbFirst, nbRefresh> TButtonSet;
#pragma option push -b-
enum DBCtrls__11 { nsAllowTimer, nsFocusRect };
#pragma option pop
typedef Set<DBCtrls__11, nsAllowTimer, nsFocusRect> TNavButtonStyle;
typedef void __fastcall (__closure *ENavClick)(System::TObject* Sender, TNavigateBtn Button);
class DELPHICLASS TDBNavigator;
class DELPHICLASS TNavDataLink;
class PASCALIMPLEMENTATION TNavDataLink : public Db::TDataLink
{
typedef Db::TDataLink inherited;
private:
TDBNavigator* FNavigator;
protected:
virtual void __fastcall EditingChanged(void);
virtual void __fastcall DataSetChanged(void);
virtual void __fastcall ActiveChanged(void);
public:
__fastcall TNavDataLink(TDBNavigator* ANav);
__fastcall virtual ~TNavDataLink(void);
};
class DELPHICLASS TNavButton;
class PASCALIMPLEMENTATION TDBNavigator : public Extctrls::TCustomPanel
{
typedef Extctrls::TCustomPanel inherited;
private:
TNavDataLink* FDataLink;
TButtonSet FVisibleButtons;
Classes::TStrings* FHints;
Classes::TStrings* FDefHints;
int ButtonWidth;
Windows::TPoint MinBtnSize;
ENavClick FOnNavClick;
ENavClick FBeforeAction;
TNavigateBtn FocusedButton;
bool FConfirmDelete;
bool FFlat;
void __fastcall BtnMouseDown(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState
Shift, int X, int Y);
void __fastcall ClickHandler(System::TObject* Sender);
Db::TDataSource* __fastcall GetDataSource(void);
Classes::TStrings* __fastcall GetHints(void);
void __fastcall HintsChanged(System::TObject* Sender);
void __fastcall InitButtons(void);
void __fastcall InitHints(void);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetFlat(bool Value);
void __fastcall SetHints(Classes::TStrings* Value);
void __fastcall SetSize(int &W, int &H);
HIDESBASE void __fastcall SetVisible(TButtonSet Value);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMWindowPosChanging(Messages::TWMWindowPosMsg &Message);
protected:
TNavButton* Buttons[10];
void __fastcall DataChanged(void);
void __fastcall EditingChanged(void);
void __fastcall ActiveChanged(void);
virtual void __fastcall Loaded(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
DYNAMIC void __fastcall GetChildren(Classes::TGetChildProc Proc, Classes::TComponent* Root);
void __fastcall CalcMinSize(int &W, int &H);
public:
__fastcall virtual TDBNavigator(Classes::TComponent* AOwner);
__fastcall virtual ~TDBNavigator(void);
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
virtual void __fastcall BtnClick(TNavigateBtn Index);
__published:
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property TButtonSet VisibleButtons = {read=FVisibleButtons, write=SetVisible, default=1023};
__property Align ;
__property Anchors ;
__property Constraints ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property bool Flat = {read=FFlat, write=SetFlat, default=0};
__property Ctl3D ;
__property Classes::TStrings* Hints = {read=GetHints, write=SetHints};
__property ParentCtl3D ;
__property ParentShowHint ;
__property PopupMenu ;
__property bool ConfirmDelete = {read=FConfirmDelete, write=FConfirmDelete, default=1};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property ENavClick BeforeAction = {read=FBeforeAction, write=FBeforeAction};
__property ENavClick OnClick = {read=FOnNavClick, write=FOnNavClick};
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnResize ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBNavigator(HWND ParentWindow) : Extctrls::TCustomPanel(
ParentWindow) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TNavButton : public Buttons::TSpeedButton
{
typedef Buttons::TSpeedButton inherited;
private:
TNavigateBtn FIndex;
TNavButtonStyle FNavStyle;
Extctrls::TTimer* FRepeatTimer;
void __fastcall TimerExpired(System::TObject* Sender);
protected:
virtual void __fastcall Paint(void);
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);
public:
__fastcall virtual ~TNavButton(void);
__property TNavButtonStyle NavStyle = {read=FNavStyle, write=FNavStyle, nodefault};
__property TNavigateBtn Index = {read=FIndex, write=FIndex, nodefault};
public:
#pragma option push -w-inl
/* TSpeedButton.Create */ inline __fastcall virtual TNavButton(Classes::TComponent* AOwner) : Buttons::TSpeedButton(
AOwner) { }
#pragma option pop
};
class DELPHICLASS TDataSourceLink;
class DELPHICLASS TDBLookupControl;
class DELPHICLASS TListSourceLink;
class PASCALIMPLEMENTATION TListSourceLink : public Db::TDataLink
{
typedef Db::TDataLink inherited;
private:
TDBLookupControl* FDBLookupControl;
protected:
virtual void __fastcall ActiveChanged(void);
virtual void __fastcall DataSetChanged(void);
virtual void __fastcall LayoutChanged(void);
public:
__fastcall TListSourceLink(void);
public:
#pragma option push -w-inl
/* TDataLink.Destroy */ inline __fastcall virtual ~TListSourceLink(void) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TDBLookupControl : public Controls::TCustomControl
{
typedef Controls::TCustomControl inherited;
private:
Db::TDataSource* FLookupSource;
TDataSourceLink* FDataLink;
TListSourceLink* FListLink;
AnsiString FDataFieldName;
AnsiString FKeyFieldName;
AnsiString FListFieldName;
int FListFieldIndex;
Db::TField* FDataField;
Db::TField* FMasterField;
Db::TField* FKeyField;
Db::TField* FListField;
Classes::TList* FListFields;
Variant FKeyValue;
AnsiString FSearchText;
bool FLookupMode;
bool FListActive;
bool FHasFocus;
void __fastcall CheckNotCircular(void);
void __fastcall CheckNotLookup(void);
void __fastcall DataLinkRecordChanged(Db::TField* Field);
Db::TDataSource* __fastcall GetDataSource(void);
AnsiString __fastcall GetKeyFieldName();
Db::TDataSource* __fastcall GetListSource(void);
bool __fastcall GetReadOnly(void);
void __fastcall SetDataFieldName(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
void __fastcall SetKeyFieldName(const AnsiString Value);
void __fastcall SetKeyValue(const Variant &Value);
void __fastcall SetListFieldName(const AnsiString Value);
void __fastcall SetListSource(Db::TDataSource* Value);
void __fastcall SetLookupMode(bool Value);
void __fastcall SetReadOnly(bool Value);
MESSAGE void __fastcall WMGetDlgCode(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
protected:
virtual bool __fastcall CanModify(void);
virtual int __fastcall GetBorderSize(void);
virtual int __fastcall GetTextHeight(void);
virtual void __fastcall KeyValueChanged(void);
virtual void __fastcall ListLinkDataChanged(void);
virtual bool __fastcall LocateKey(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall ProcessSearchKey(char Key);
virtual void __fastcall SelectKeyValue(const Variant &Value);
virtual void __fastcall UpdateDataFields(void);
virtual void __fastcall UpdateListFields(void);
__property AnsiString DataField = {read=FDataFieldName, write=SetDataFieldName};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property bool HasFocus = {read=FHasFocus, nodefault};
__property AnsiString KeyField = {read=GetKeyFieldName, write=SetKeyFieldName};
__property Variant KeyValue = {read=FKeyValue, write=SetKeyValue};
__property bool ListActive = {read=FListActive, nodefault};
__property AnsiString ListField = {read=FListFieldName, write=SetListFieldName};
__property int ListFieldIndex = {read=FListFieldIndex, write=FListFieldIndex, default=0};
__property Classes::TList* ListFields = {read=FListFields};
__property TListSourceLink* ListLink = {read=FListLink};
__property Db::TDataSource* ListSource = {read=GetListSource, write=SetListSource};
__property ParentColor ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property AnsiString SearchText = {read=FSearchText, write=FSearchText};
__property TabStop ;
public:
__fastcall virtual TDBLookupControl(Classes::TComponent* AOwner);
__fastcall virtual ~TDBLookupControl(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
__property Db::TField* Field = {read=FDataField};
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBLookupControl(HWND ParentWindow) : Controls::TCustomControl(
ParentWindow) { }
#pragma option pop
};
class PASCALIMPLEMENTATION TDataSourceLink : public Db::TDataLink
{
typedef Db::TDataLink inherited;
private:
TDBLookupControl* FDBLookupControl;
protected:
virtual void __fastcall FocusControl(Db::TFieldRef Field);
virtual void __fastcall ActiveChanged(void);
virtual void __fastcall LayoutChanged(void);
virtual void __fastcall RecordChanged(Db::TField* Field);
public:
__fastcall TDataSourceLink(void);
public:
#pragma option push -w-inl
/* TDataLink.Destroy */ inline __fastcall virtual ~TDataSourceLink(void) { }
#pragma option pop
};
class DELPHICLASS TDBLookupListBox;
class PASCALIMPLEMENTATION TDBLookupListBox : public TDBLookupControl
{
typedef TDBLookupControl inherited;
private:
int FRecordIndex;
int FRecordCount;
int FRowCount;
Forms::TFormBorderStyle FBorderStyle;
bool FPopup;
bool FKeySelected;
bool FTracking;
bool FTimerActive;
bool FLockPosition;
int FMousePos;
AnsiString FSelectedItem;
int __fastcall GetKeyIndex(void);
void __fastcall SelectCurrent(void);
void __fastcall SelectItemAt(int X, int Y);
void __fastcall SetBorderStyle(Forms::TBorderStyle Value);
void __fastcall SetRowCount(int Value);
void __fastcall StopTimer(void);
void __fastcall StopTracking(void);
void __fastcall TimerScroll(void);
void __fastcall UpdateScrollBar(void);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMCancelMode(Messages::TMessage &Message);
MESSAGE void __fastcall WMTimer(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall CreateWnd(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall KeyValueChanged(void);
virtual void __fastcall ListLinkDataChanged(void);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int
Y);
virtual void __fastcall Paint(void);
virtual void __fastcall UpdateListFields(void);
public:
__fastcall virtual TDBLookupListBox(Classes::TComponent* AOwner);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property KeyValue ;
__property AnsiString SelectedItem = {read=FSelectedItem};
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
__published:
__property Align ;
__property Anchors ;
__property BiDiMode ;
__property Forms::TBorderStyle BorderStyle = {read=FBorderStyle, write=SetBorderStyle, default=1};
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property DataField ;
__property DataSource ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property KeyField ;
__property ListField ;
__property ListFieldIndex ;
__property ListSource ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ReadOnly ;
__property int RowCount = {read=FRowCount, write=SetRowCount, stored=false, nodefault};
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TDBLookupControl.Destroy */ inline __fastcall virtual ~TDBLookupListBox(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBLookupListBox(HWND ParentWindow) : TDBLookupControl(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TPopupDataList;
class PASCALIMPLEMENTATION TPopupDataList : public TDBLookupListBox
{
typedef TDBLookupListBox inherited;
private:
MESSAGE void __fastcall WMMouseActivate(Messages::TMessage &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
public:
__fastcall virtual TPopupDataList(Classes::TComponent* AOwner);
public:
#pragma option push -w-inl
/* TDBLookupControl.Destroy */ inline __fastcall virtual ~TPopupDataList(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TPopupDataList(HWND ParentWindow) : TDBLookupListBox(
ParentWindow) { }
#pragma option pop
};
#pragma option push -b-
enum TDropDownAlign { daLeft, daRight, daCenter };
#pragma option pop
class DELPHICLASS TDBLookupComboBox;
class PASCALIMPLEMENTATION TDBLookupComboBox : public TDBLookupControl
{
typedef TDBLookupControl inherited;
private:
TPopupDataList* FDataList;
int FButtonWidth;
AnsiString FText;
int FDropDownRows;
int FDropDownWidth;
TDropDownAlign FDropDownAlign;
bool FListVisible;
bool FPressed;
bool FTracking;
Classes::TAlignment FAlignment;
bool FLookupMode;
Classes::TNotifyEvent FOnDropDown;
Classes::TNotifyEvent FOnCloseUp;
void __fastcall ListMouseUp(System::TObject* Sender, Controls::TMouseButton Button, Classes::TShiftState
Shift, int X, int Y);
void __fastcall StopTracking(void);
void __fastcall TrackButton(int X, int Y);
HIDESBASE MESSAGE void __fastcall CMDialogKey(Messages::TWMKey &Message);
MESSAGE void __fastcall CMCancelMode(Controls::TCMCancelMode &Message);
HIDESBASE MESSAGE void __fastcall CMCtl3DChanged(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMFontChanged(Messages::TMessage &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMCancelMode(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
HIDESBASE MESSAGE void __fastcall CMBiDiModeChanged(Messages::TMessage &Message);
protected:
virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
virtual void __fastcall Paint(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall KeyValueChanged(void);
DYNAMIC void __fastcall MouseDown(Controls::TMouseButton Button, Classes::TShiftState Shift, int X,
int Y);
DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
DYNAMIC void __fastcall MouseUp(Controls::TMouseButton Button, Classes::TShiftState Shift, int X, int
Y);
virtual void __fastcall UpdateListFields(void);
public:
__fastcall virtual TDBLookupComboBox(Classes::TComponent* AOwner);
virtual void __fastcall CloseUp(bool Accept);
virtual void __fastcall DropDown(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property KeyValue ;
__property bool ListVisible = {read=FListVisible, nodefault};
__property AnsiString Text = {read=FText};
__published:
__property Anchors ;
__property BiDiMode ;
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property DataField ;
__property DataSource ;
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property TDropDownAlign DropDownAlign = {read=FDropDownAlign, write=FDropDownAlign, default=0};
__property int DropDownRows = {read=FDropDownRows, write=FDropDownRows, default=7};
__property int DropDownWidth = {read=FDropDownWidth, write=FDropDownWidth, default=0};
__property Enabled ;
__property Font ;
__property ImeMode ;
__property ImeName ;
__property KeyField ;
__property ListField ;
__property ListFieldIndex ;
__property ListSource ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PopupMenu ;
__property ReadOnly ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property OnClick ;
__property Classes::TNotifyEvent OnCloseUp = {read=FOnCloseUp, write=FOnCloseUp};
__property OnContextPopup ;
__property OnDragDrop ;
__property OnDragOver ;
__property Classes::TNotifyEvent OnDropDown = {read=FOnDropDown, write=FOnDropDown};
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TDBLookupControl.Destroy */ inline __fastcall virtual ~TDBLookupComboBox(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBLookupComboBox(HWND ParentWindow) : TDBLookupControl(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TDBRichEdit;
class PASCALIMPLEMENTATION TDBRichEdit : public Comctrls::TCustomRichEdit
{
typedef Comctrls::TCustomRichEdit inherited;
private:
TFieldDataLink* FDataLink;
bool FAutoDisplay;
bool FFocused;
bool FMemoLoaded;
AnsiString FDataSave;
void __fastcall BeginEditing(void);
void __fastcall DataChange(System::TObject* Sender);
void __fastcall EditingChange(System::TObject* Sender);
AnsiString __fastcall GetDataField();
Db::TDataSource* __fastcall GetDataSource(void);
Db::TField* __fastcall GetField(void);
bool __fastcall GetReadOnly(void);
void __fastcall SetDataField(const AnsiString Value);
void __fastcall SetDataSource(Db::TDataSource* Value);
HIDESBASE void __fastcall SetReadOnly(bool Value);
void __fastcall SetAutoDisplay(bool Value);
void __fastcall SetFocused(bool Value);
void __fastcall UpdateData(System::TObject* Sender);
MESSAGE void __fastcall WMCut(Messages::TMessage &Message);
MESSAGE void __fastcall WMPaste(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonDblClk(Messages::TWMMouse &Message);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
DYNAMIC void __fastcall Change(void);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual void __fastcall Loaded(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
public:
__fastcall virtual TDBRichEdit(Classes::TComponent* AOwner);
__fastcall virtual ~TDBRichEdit(void);
DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
virtual void __fastcall LoadMemo(void);
DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
DYNAMIC bool __fastcall UseRightToLeftAlignment(void);
__property Db::TField* Field = {read=GetField};
__published:
__property Align ;
__property Alignment ;
__property Anchors ;
__property bool AutoDisplay = {read=FAutoDisplay, write=SetAutoDisplay, default=1};
__property BiDiMode ;
__property BorderStyle ;
__property Color ;
__property Constraints ;
__property Ctl3D ;
__property AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property DragCursor ;
__property DragKind ;
__property DragMode ;
__property Enabled ;
__property Font ;
__property HideSelection ;
__property HideScrollBars ;
__property ImeMode ;
__property ImeName ;
__property MaxLength ;
__property ParentBiDiMode ;
__property ParentColor ;
__property ParentCtl3D ;
__property ParentFont ;
__property ParentShowHint ;
__property PlainText ;
__property PopupMenu ;
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property ScrollBars ;
__property ShowHint ;
__property TabOrder ;
__property TabStop ;
__property Visible ;
__property WantReturns ;
__property WantTabs ;
__property WordWrap ;
__property OnChange ;
__property OnClick ;
__property OnContextPopup ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDock ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
__property OnResizeRequest ;
__property OnSelectionChange ;
__property OnProtectChange ;
__property OnSaveClipboard ;
__property OnStartDock ;
__property OnStartDrag ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TDBRichEdit(HWND ParentWindow) : Comctrls::TCustomRichEdit(
ParentWindow) { }
#pragma option pop
};
//-- var, const, procedure ---------------------------------------------------
static const Word InitRepeatPause = 0x190;
static const Shortint RepeatPause = 0x64;
static const Shortint SpaceSize = 0x5;
extern PACKAGE bool __fastcall OkToChangeFieldAlignment(Db::TField* AField, Classes::TAlignment Alignment
);
extern PACKAGE bool __fastcall DBUseRightToLeftAlignment(Controls::TControl* AControl, Db::TField* AField
);
} /* namespace Dbctrls */
#if !defined(NO_IMPLICIT_NAMESPACE_USE)
using namespace Dbctrls;
#endif
#pragma option pop // -w-
#pragma option pop // -Vx
#pragma delphiheader end.
//-- end unit ----------------------------------------------------------------
#endif // DBCtrls