?? dblookupgridseh.hpp
字號:
// CodeGear C++ Builder
// Copyright (c) 1995, 2007 by CodeGear
// All rights reserved
// (DO NOT EDIT: machine generated header) 'Dblookupgridseh.pas' rev: 11.00
#ifndef DblookupgridsehHPP
#define DblookupgridsehHPP
#pragma delphiheader begin
#pragma option push
#pragma option -w- // All warnings off
#pragma option -Vx // Zero-length empty class member functions
#pragma pack(push,8)
#include <System.hpp> // Pascal unit
#include <Sysinit.hpp> // Pascal unit
#include <Windows.hpp> // Pascal unit
#include <Messages.hpp> // Pascal unit
#include <Sysutils.hpp> // Pascal unit
#include <Classes.hpp> // Pascal unit
#include <Controls.hpp> // Pascal unit
#include <Gridseh.hpp> // Pascal unit
#include <Dbgrideh.hpp> // Pascal unit
#include <Toolctrlseh.hpp> // Pascal unit
#include <Contnrs.hpp> // Pascal unit
#include <Variants.hpp> // Pascal unit
#include <Db.hpp> // Pascal unit
#include <Graphics.hpp> // Pascal unit
#include <Stdctrls.hpp> // Pascal unit
#include <Forms.hpp> // Pascal unit
#include <Imglist.hpp> // Pascal unit
#include <Menus.hpp> // Pascal unit
//-- user supplied -----------------------------------------------------------
namespace Dblookupgridseh
{
//-- type declarations -------------------------------------------------------
class DELPHICLASS TLookupGridDataLinkEh;
class DELPHICLASS TDBLookupGridEh;
class PASCALIMPLEMENTATION TDBLookupGridEh : public Dbgrideh::TCustomDBGridEh
{
typedef Dbgrideh::TCustomDBGridEh inherited;
private:
AnsiString FDataFieldName;
DynamicArray<Db::TField* > FDataFields;
TLookupGridDataLinkEh* FDataLink;
bool FHasFocus;
AnsiString FKeyFieldName;
DynamicArray<Db::TField* > FKeyFields;
bool FKeyRowVisible;
bool FKeySelected;
Variant FKeyValue;
bool FListActive;
Db::TField* FListField;
int FListFieldIndex;
AnsiString FListFieldName;
Contnrs::TObjectList* FListFields;
bool FLockPosition;
bool FLookupMode;
Db::TDataSource* FLookupSource;
AnsiString FMasterFieldNames;
DynamicArray<Db::TField* > FMasterFields;
int FMousePos;
bool FPopup;
int FRecordCount;
int FRecordIndex;
int FRowCount;
AnsiString FSearchText;
AnsiString FSelectedItem;
Toolctrlseh::TSpecRowEh* FSpecRow;
Dbgrideh::TDBLookupGridEhOptions FOptions;
bool __fastcall GetAutoFitColWidths(void);
Db::TField* __fastcall GetDataField(void);
HIDESBASE Db::TDataSource* __fastcall GetDataSource(void);
AnsiString __fastcall GetKeyFieldName();
Dbgrideh::TGridDataLinkEh* __fastcall GetListLink(void);
Db::TDataSource* __fastcall GetListSource(void);
bool __fastcall GetReadOnly(void);
bool __fastcall GetShowTitles(void);
int __fastcall GetTitleRowHeight(void);
bool __fastcall GetUseMultiTitle(void);
void __fastcall CheckNotCircular(void);
void __fastcall CheckNotLookup(void);
HIDESBASE MESSAGE void __fastcall CMRecreateWnd(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall CMHintShow(Forms::TCMHintShow &Message);
void __fastcall DataLinkRecordChanged(Db::TField* Field);
void __fastcall SelectCurrent(void);
void __fastcall SelectItemAt(int X, int Y);
void __fastcall SelectSpecRow(void);
void __fastcall SetAutoFitColWidths(const bool Value);
void __fastcall SetDataFieldName(const AnsiString Value);
HIDESBASE 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);
HIDESBASE void __fastcall SetOptions(const Dbgrideh::TDBLookupGridEhOptions Value);
HIDESBASE void __fastcall SetReadOnly(bool Value);
HIDESBASE void __fastcall SetRowCount(int Value);
void __fastcall SetShowTitles(const bool Value);
void __fastcall SetSpecRow(const Toolctrlseh::TSpecRowEh* Value);
void __fastcall SetUseMultiTitle(const bool Value);
HIDESBASE MESSAGE void __fastcall WMGetDlgCode(Messages::TWMNoParams &Message);
HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TWMKillFocus &Message);
HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Msg);
HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Message);
HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
protected:
int FSpecRowHeight;
bool FLGAutoFitColWidths;
bool FInternalWidthSetting;
bool FInternalHeightSetting;
virtual bool __fastcall CanDrawFocusRowRect(void);
virtual bool __fastcall CanModify(void);
virtual bool __fastcall CellHave3DRect(int ACol, int ARow, const Types::TRect &ARect, Gridseh::TGridDrawState AState);
virtual bool __fastcall CompatibleVarValue(Toolctrlseh::TFieldsArrEh AFieldsArr, const Variant &AVlaue);
DYNAMIC Dbgrideh::TColumnDefValuesEh* __fastcall CreateColumnDefValues(void);
DYNAMIC Dbgrideh::TDBGridColumnsEh* __fastcall CreateColumns(void);
DYNAMIC bool __fastcall DoMouseWheelDown(Classes::TShiftState Shift, const Types::TPoint &MousePos);
DYNAMIC bool __fastcall DoMouseWheelUp(Classes::TShiftState Shift, const Types::TPoint &MousePos);
virtual int __fastcall GetBorderSize(void);
int __fastcall GetKeyIndex(void);
virtual int __fastcall GetSpecRowHeight(void);
virtual int __fastcall GetSubTitleRows(void);
virtual int __fastcall GetDataRowHeight(void);
virtual bool __fastcall HighlightDataCellColor(int DataCol, int DataRow, const AnsiString Value, Gridseh::TGridDrawState AState, Graphics::TColor &AColor, Graphics::TFont* AFont);
DYNAMIC void __fastcall ColWidthsChanged(void);
virtual void __fastcall CreateWnd(void);
virtual void __fastcall DataChanged(void);
virtual void __fastcall DefineFieldMap(void);
virtual void __fastcall DrawSubTitleCell(int ACol, int ARow, int DataCol, int DataRow, Dbgrideh::TCellTypeEh CellType, const Types::TRect &ARect, Gridseh::TGridDrawState AState, bool &Highlighted);
virtual void __fastcall GetDatasetFieldList(Classes::TList* FieldList);
DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
virtual void __fastcall KeyValueChanged(void);
virtual void __fastcall LayoutChanged(void);
virtual void __fastcall ListLinkDataChanged(void);
virtual void __fastcall LinkActive(bool Value);
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 Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
virtual void __fastcall ProcessSearchKey(char Key);
virtual void __fastcall Scroll(int Distance);
virtual void __fastcall SelectKeyValue(const Variant &Value);
virtual void __fastcall SpecRowChanged(System::TObject* Sender);
virtual void __fastcall TimerScroll(void);
virtual void __fastcall UpdateActive(void);
virtual void __fastcall UpdateColumnsList(void);
virtual void __fastcall UpdateDataFields(void);
virtual void __fastcall UpdateListFields(void);
virtual void __fastcall UpdateRowCount(void);
virtual void __fastcall UpdateScrollBar(void);
__property bool HasFocus = {read=FHasFocus, nodefault};
__property ParentColor = {default=0};
__property int TitleRowHeight = {read=GetTitleRowHeight, nodefault};
public:
__fastcall virtual TDBLookupGridEh(Classes::TComponent* AOwner);
__fastcall virtual ~TDBLookupGridEh(void);
HIDESBASE Types::TRect __fastcall DataRect();
int __fastcall GetColumnsWidthToFit(void);
virtual bool __fastcall LocateKey(void);
virtual void __fastcall SetBounds(int ALeft, int ATop, int AWidth, int AHeight);
__property bool AutoFitColWidths = {read=GetAutoFitColWidths, write=SetAutoFitColWidths, nodefault};
__property AnsiString DataField = {read=FDataFieldName, write=SetDataFieldName};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property Db::TField* Field = {read=GetDataField};
__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 Contnrs::TObjectList* ListFields = {read=FListFields};
__property Dbgrideh::TGridDataLinkEh* ListLink = {read=GetListLink};
__property Db::TDataSource* ListSource = {read=GetListSource, write=SetListSource};
__property Dbgrideh::TDBLookupGridEhOptions Options = {read=FOptions, write=SetOptions, default=2};
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property AnsiString SearchText = {read=FSearchText, write=FSearchText};
__property AnsiString SelectedItem = {read=FSelectedItem};
__property Toolctrlseh::TSpecRowEh* SpecRow = {read=FSpecRow, write=SetSpecRow};
__property bool ShowTitles = {read=GetShowTitles, write=SetShowTitles, nodefault};
__property int RowCount = {read=FRowCount, write=SetRowCount, stored=false, nodefault};
__property Color = {default=-16777211};
__property bool UseMultiTitle = {read=GetUseMultiTitle, write=SetUseMultiTitle, nodefault};
__property OnClick ;
__property OnColumnMoved ;
__property OnDblClick ;
__property OnDragDrop ;
__property OnDragOver ;
__property OnEndDrag ;
__property OnEnter ;
__property OnExit ;
__property OnKeyDown ;
__property OnKeyPress ;
__property OnKeyUp ;
__property OnMouseDown ;
__property OnMouseMove ;
__property OnMouseUp ;
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -