home *** CD-ROM | disk | FTP | other *** search
- // Borland C++ Builder
- // Copyright (c) 1995, 1998 by Borland International
- // All rights reserved
-
- // (DO NOT EDIT: machine generated header) 'AHMTDBIndexLookup.pas' rev: 3.00
-
- #ifndef AHMTDBIndexLookupHPP
- #define AHMTDBIndexLookupHPP
- #include <Menus.hpp>
- #include <Graphics.hpp>
- #include <AHMSControls.hpp>
- #include <DBTables.hpp>
- #include <Db.hpp>
- #include <StdCtrls.hpp>
- #include <Controls.hpp>
- #include <Classes.hpp>
- #include <Messages.hpp>
- #include <Windows.hpp>
- #include <SysUtils.hpp>
- #include <SysInit.hpp>
- #include <System.hpp>
-
- //-- user supplied -----------------------------------------------------------
-
- namespace Ahmtdbindexlookup
- {
- //-- type declarations -------------------------------------------------------
- enum TAHMDBDisplayType { dtDisplayLabel, dtFieldName, dtIndexName };
-
- class DELPHICLASS TAHMIndexDataLink;
- class DELPHICLASS TAHMDBIndexLookup;
- class PASCALIMPLEMENTATION TAHMDBIndexLookup : public Stdctrls::TCustomComboBox
- {
- typedef Stdctrls::TCustomComboBox inherited;
-
- private:
- TAHMIndexDataLink* FDataLink;
- bool FUpdate;
- Ahmscontrols::TAHMAboutSControlStr FAboutStr;
- System::AnsiString *FNoIndexItem;
- bool FEnableNoIndex;
- TAHMDBDisplayType FDisplayType;
- Db::TDataSource* __fastcall GetDataSource(void);
- void __fastcall SetDataSource(Db::TDataSource* Value);
- System::AnsiString __fastcall GetIndexFieldName(void);
- void __fastcall SetNoIndexItem(const System::AnsiString Value);
- System::AnsiString __fastcall GetNoIndexItem(void);
- void __fastcall SetEnableNoIndex(bool Value);
- void __fastcall SetDisplayType(TAHMDBDisplayType Value);
- void __fastcall ActiveChanged(void);
- HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
-
- protected:
- virtual void __fastcall Loaded(void);
- virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
- );
- void __fastcall FillIndexList(Classes::TStrings* List);
- DYNAMIC void __fastcall Change(void);
- virtual void __fastcall UpdateList(void);
-
- public:
- __fastcall virtual TAHMDBIndexLookup(Classes::TComponent* AOwner);
- __fastcall virtual ~TAHMDBIndexLookup(void);
-
- __published:
- __property Ahmscontrols::TAHMAboutSControlStr About = {read=FAboutStr, write=FAboutStr};
- __property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
- __property System::AnsiString NoIndexItemName = {read=GetNoIndexItem, write=SetNoIndexItem};
- __property bool NoIndexEnabled = {read=FEnableNoIndex, write=SetEnableNoIndex, default=0};
- __property TAHMDBDisplayType DisplayType = {read=FDisplayType, write=SetDisplayType, default=0};
- __property DragCursor ;
- __property DragMode ;
- __property Enabled ;
- __property Color ;
- __property Ctl3D ;
- __property DropDownCount ;
- __property Font ;
- __property ItemHeight ;
- __property ParentCtl3D ;
- __property ParentFont ;
- __property ParentShowHint ;
- __property PopupMenu ;
- __property ShowHint ;
- __property Sorted ;
- __property TabOrder ;
- __property TabStop ;
- __property Visible ;
- __property OnChange ;
- __property OnClick ;
- __property OnDblClick ;
- __property OnDragDrop ;
- __property OnDragOver ;
- __property OnEndDrag ;
- __property OnEnter ;
- __property OnExit ;
- __property OnKeyDown ;
- __property OnKeyPress ;
- __property OnKeyUp ;
- __property OnStartDrag ;
- public:
- /* TWinControl.CreateParented */ __fastcall TAHMDBIndexLookup(HWND ParentWindow) : Stdctrls::TCustomComboBox(
- ParentWindow) { }
-
- };
-
- class PASCALIMPLEMENTATION TAHMIndexDataLink : public Db::TDataLink
- {
- typedef Db::TDataLink inherited;
-
- private:
- TAHMDBIndexLookup* FILookup;
-
- protected:
- virtual void __fastcall ActiveChanged(void);
- virtual void __fastcall DataSetChanged(void);
-
- public:
- __fastcall TAHMIndexDataLink(TAHMDBIndexLookup* ALookup);
- __fastcall virtual ~TAHMIndexDataLink(void);
- };
-
- //-- var, const, procedure ---------------------------------------------------
-
- } /* namespace Ahmtdbindexlookup */
- #if !defined(NO_IMPLICIT_NAMESPACE_USE)
- using namespace Ahmtdbindexlookup;
- #endif
- //-- end unit ----------------------------------------------------------------
- #endif // AHMTDBIndexLookup
-