home *** CD-ROM | disk | FTP | other *** search
/ Visual Basic Controls / Visual Basic Controls.iso / vbcontrol / ahmstanc / _setup.1 / AHMTDBLookupEdit.hpp < prev    next >
Encoding:
C/C++ Source or Header  |  1998-12-05  |  4.5 KB  |  134 lines

  1. // Borland C++ Builder
  2. // Copyright (c) 1995, 1998 by Borland International
  3. // All rights reserved
  4.  
  5. // (DO NOT EDIT: machine generated header) 'AHMTDBLookupEdit.pas' rev: 3.00
  6.  
  7. #ifndef AHMTDBLookupEditHPP
  8. #define AHMTDBLookupEditHPP
  9. #include <Menus.hpp>
  10. #include <Mask.hpp>
  11. #include <Graphics.hpp>
  12. #include <StdCtrls.hpp>
  13. #include <AHMTLookupEdit.hpp>
  14. #include <DBCtrls.hpp>
  15. #include <DBTables.hpp>
  16. #include <Db.hpp>
  17. #include <AHMSControls.hpp>
  18. #include <Messages.hpp>
  19. #include <Controls.hpp>
  20. #include <Classes.hpp>
  21. #include <Windows.hpp>
  22. #include <SysInit.hpp>
  23. #include <System.hpp>
  24.  
  25. //-- user supplied -----------------------------------------------------------
  26.  
  27. namespace Ahmtdblookupedit
  28. {
  29. //-- type declarations -------------------------------------------------------
  30. class DELPHICLASS TAHMDBLookupedit;
  31. class PASCALIMPLEMENTATION TAHMDBLookupedit : public Ahmtlookupedit::TAHMCustomLookupEdit 
  32. {
  33.     typedef Ahmtlookupedit::TAHMCustomLookupEdit inherited;
  34.     
  35. private:
  36.     bool FDirectInput;
  37.     bool FAlwaysEnable;
  38.     TAlignment FAlignment;
  39.     Dbctrls::TFieldDataLink* FDataLink;
  40.     Controls::TControlCanvas* FCanvas;
  41.     bool FFocused;
  42.     void __fastcall DataChange(System::TObject* Sender);
  43.     void __fastcall EditingChange(System::TObject* Sender);
  44.     System::AnsiString __fastcall GetDataField(void);
  45.     Db::TDataSource* __fastcall GetDataSource(void);
  46.     Db::TField* __fastcall GetField(void);
  47.     void __fastcall SetDataField(const System::AnsiString Value);
  48.     void __fastcall SetDataSource(Db::TDataSource* Value);
  49.     void __fastcall SetFocused(bool Value);
  50.     void __fastcall UpdateData(System::TObject* Sender);
  51.     HIDESBASE MESSAGE void __fastcall CMExit(Messages::TWMNoParams &Message);
  52.     MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
  53.     HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Message);
  54.     HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TMessage &Message);
  55.     HIDESBASE MESSAGE void __fastcall WMPaste(Messages::TWMNoParams &Message);
  56.     HIDESBASE MESSAGE void __fastcall WMCut(Messages::TWMNoParams &Message);
  57.     void __fastcall SetDirectInput(bool Value);
  58.     
  59. protected:
  60.     DYNAMIC void __fastcall Change(void);
  61.     virtual bool __fastcall EditCanModify(void);
  62.     virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
  63.         );
  64.     virtual void __fastcall Reset(void);
  65.     __property bool AlwaysEnable = {read=FAlwaysEnable, write=FAlwaysEnable, default=0};
  66.     
  67. public:
  68.     __fastcall virtual TAHMDBLookupedit(Classes::TComponent* AOwner);
  69.     virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
  70.     __fastcall virtual ~TAHMDBLookupedit(void);
  71.     DYNAMIC void __fastcall KeyPress(char &Key);
  72.     HIDESBASE void __fastcall SelectAll(void);
  73.     virtual void __fastcall Loaded(void);
  74.     __property Db::TField* Field = {read=GetField};
  75.     
  76. __published:
  77.     __property AutoSelect ;
  78.     __property AutoSize ;
  79.     __property CharCase ;
  80.     __property Color ;
  81.     __property Ctl3D ;
  82.     __property System::AnsiString DataField = {read=GetDataField, write=SetDataField};
  83.     __property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
  84.     __property EditButton1 ;
  85.     __property OnButton1Click ;
  86.     __property EditButton2 ;
  87.     __property OnButton2Click ;
  88.     __property bool ReadonlyClickable = {read=FDirectInput, write=SetDirectInput, default=0};
  89.     __property DragCursor ;
  90.     __property DragMode ;
  91.     __property Enabled ;
  92.     __property Font ;
  93.     __property MaxLength ;
  94.     __property ParentColor ;
  95.     __property ParentCtl3D ;
  96.     __property ParentFont ;
  97.     __property ParentShowHint ;
  98.     __property PasswordChar ;
  99.     __property PopupMenu ;
  100.     __property ReadOnly ;
  101.     __property ShowHint ;
  102.     __property TabOrder ;
  103.     __property TabStop ;
  104.     __property Visible ;
  105.     __property OnChange ;
  106.     __property OnClick ;
  107.     __property OnDblClick ;
  108.     __property OnDragDrop ;
  109.     __property OnDragOver ;
  110.     __property OnEndDrag ;
  111.     __property OnEnter ;
  112.     __property OnExit ;
  113.     __property OnKeyDown ;
  114.     __property OnKeyPress ;
  115.     __property OnKeyUp ;
  116.     __property OnMouseDown ;
  117.     __property OnMouseMove ;
  118.     __property OnMouseUp ;
  119.     __property OnStartDrag ;
  120. public:
  121.     /* TWinControl.CreateParented */ __fastcall TAHMDBLookupedit(HWND ParentWindow) : Ahmtlookupedit::TAHMCustomLookupEdit(
  122.         ParentWindow) { }
  123.     
  124. };
  125.  
  126. //-- var, const, procedure ---------------------------------------------------
  127.  
  128. }    /* namespace Ahmtdblookupedit */
  129. #if !defined(NO_IMPLICIT_NAMESPACE_USE)
  130. using namespace Ahmtdblookupedit;
  131. #endif
  132. //-- end unit ----------------------------------------------------------------
  133. #endif    // AHMTDBLookupEdit
  134.