📄 suidbctrls.hpp
字号:
protected:
virtual void __fastcall SetEnabled(bool Value);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall CloseUp(void);
public:
__fastcall virtual TsuiDBComboBox(Classes::TComponent* AOwner);
__published:
__property Suimgr::TsuiFileTheme* FileTheme = {read=m_FileTheme, write=SetFileTheme};
__property Suithemes::TsuiUIStyle UIStyle = {read=m_UIStyle, write=SetUIStyle, nodefault};
__property Graphics::TColor BorderColor = {read=m_BorderColor, write=SetBorderColor, nodefault};
__property Graphics::TColor ArrowColor = {read=m_ArrowColor, write=SetArrowColor, nodefault};
__property Graphics::TColor ButtonColor = {read=m_ButtonColor, write=SetButtonColor, nodefault};
public:
#pragma option push -w-inl
/* TDBComboBox.Destroy */ inline __fastcall virtual ~TsuiDBComboBox(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TsuiDBComboBox(HWND ParentWindow) : Dbctrls::TDBComboBox(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TsuiDBCheckBox;
class PASCALIMPLEMENTATION TsuiDBCheckBox : public Suibutton::TsuiCheckBox
{
typedef Suibutton::TsuiCheckBox inherited;
private:
Dbctrls::TFieldDataLink* FDataLink;
AnsiString FValueCheck;
AnsiString FValueUncheck;
Dbctrls::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 TsuiDBCheckBox(Classes::TComponent* AOwner);
__fastcall virtual ~TsuiDBCheckBox(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 AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property AnsiString ValueChecked = {read=FValueCheck, write=SetValueCheck};
__property AnsiString ValueUnchecked = {read=FValueUncheck, write=SetValueUncheck};
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TsuiDBCheckBox(HWND ParentWindow) : Suibutton::TsuiCheckBox(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TsuiDBRadioGroup;
class PASCALIMPLEMENTATION TsuiDBRadioGroup : public Suiradiogroup::TsuiRadioGroup
{
typedef Suiradiogroup::TsuiRadioGroup inherited;
private:
Dbctrls::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);
MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
protected:
DYNAMIC void __fastcall Change(void);
virtual void __fastcall NewClick(void);
DYNAMIC void __fastcall KeyPress(char &Key);
virtual bool __fastcall CanModify(void);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
__property Dbctrls::TFieldDataLink* DataLink = {read=FDataLink};
public:
__fastcall virtual TsuiDBRadioGroup(Classes::TComponent* AOwner);
__fastcall virtual ~TsuiDBRadioGroup(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 AnsiString DataField = {read=GetDataField, write=SetDataField};
__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
__property Items = {write=SetItems};
__property bool ReadOnly = {read=GetReadOnly, write=SetReadOnly, default=0};
__property Classes::TStrings* Values = {read=FValues, write=SetValues};
__property Classes::TNotifyEvent OnChange = {read=FOnChange, write=FOnChange};
__property TabStop ;
__property TabOrder ;
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TsuiDBRadioGroup(HWND ParentWindow) : Suiradiogroup::TsuiRadioGroup(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TsuiDBLookupListBox;
class PASCALIMPLEMENTATION TsuiDBLookupListBox : public Dbctrls::TDBLookupListBox
{
typedef Dbctrls::TDBLookupListBox inherited;
private:
Graphics::TColor m_BorderColor;
Suithemes::TsuiUIStyle m_UIStyle;
Suimgr::TsuiFileTheme* m_FileTheme;
Suiscrollbar::TsuiScrollBar* m_VScrollBar;
bool m_MouseDown;
bool m_SelfChanging;
void __fastcall SetVScrollBar(const Suiscrollbar::TsuiScrollBar* Value);
void __fastcall OnVScrollBarChange(System::TObject* Sender);
void __fastcall UpdateScrollBars(void);
void __fastcall UpdateScrollBarsPos(void);
HIDESBASE MESSAGE void __fastcall CMEnabledChanged(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall WMSIZE(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall WMMOVE(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall WMMOUSEWHEEL(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMLBUTTONDOWN(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMLButtonUp(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMKeyDown(Messages::TWMKey &Message);
MESSAGE void __fastcall LBADDSTRING(Messages::TMessage &Msg);
MESSAGE void __fastcall LBDELETESTRING(Messages::TMessage &Msg);
MESSAGE void __fastcall LBINSERTSTRING(Messages::TMessage &Msg);
MESSAGE void __fastcall LBSETCOUNT(Messages::TMessage &Msg);
MESSAGE void __fastcall LBNSELCHANGE(Messages::TMessage &Msg);
MESSAGE void __fastcall LBNSETFOCUS(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall WMDELETEITEM(Messages::TMessage &Msg);
HIDESBASE MESSAGE void __fastcall WMMOUSEMOVE(Messages::TMessage &Message);
HIDESBASE MESSAGE void __fastcall WMVSCROLL(Messages::TWMScroll &Message);
HIDESBASE MESSAGE void __fastcall WMHSCROLL(Messages::TWMScroll &Message);
HIDESBASE MESSAGE void __fastcall WMPAINT(Messages::TMessage &Msg);
MESSAGE void __fastcall WMEARSEBKGND(Messages::TMessage &Msg);
void __fastcall SetBorderColor(const Graphics::TColor Value);
void __fastcall SetFileTheme(const Suimgr::TsuiFileTheme* Value);
void __fastcall SetUIStyle(const Suithemes::TsuiUIStyle Value);
protected:
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
public:
__fastcall virtual TsuiDBLookupListBox(Classes::TComponent* AOwner);
__published:
__property Suimgr::TsuiFileTheme* FileTheme = {read=m_FileTheme, write=SetFileTheme};
__property Suithemes::TsuiUIStyle UIStyle = {read=m_UIStyle, write=SetUIStyle, nodefault};
__property Graphics::TColor BorderColor = {read=m_BorderColor, write=SetBorderColor, nodefault};
__property Suiscrollbar::TsuiScrollBar* VScrollBar = {read=m_VScrollBar, write=SetVScrollBar};
public:
#pragma option push -w-inl
/* TDBLookupControl.Destroy */ inline __fastcall virtual ~TsuiDBLookupListBox(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TsuiDBLookupListBox(HWND ParentWindow) : Dbctrls::TDBLookupListBox(
ParentWindow) { }
#pragma option pop
};
class DELPHICLASS TsuiDBLookupComboBox;
class PASCALIMPLEMENTATION TsuiDBLookupComboBox : public Dbctrls::TDBLookupComboBox
{
typedef Dbctrls::TDBLookupComboBox inherited;
private:
Graphics::TColor m_BorderColor;
Graphics::TColor m_ButtonColor;
Graphics::TColor m_ArrowColor;
Suithemes::TsuiUIStyle m_UIStyle;
Suimgr::TsuiFileTheme* m_FileTheme;
void __fastcall SetBorderColor(const Graphics::TColor Value);
void __fastcall DrawButton(void);
void __fastcall DrawArrow(const Graphics::TCanvas* ACanvas, int X, int Y);
void __fastcall SetArrowColor(const Graphics::TColor Value);
void __fastcall SetButtonColor(const Graphics::TColor Value);
void __fastcall SetUIStyle(const Suithemes::TsuiUIStyle Value);
void __fastcall SetFileTheme(const Suimgr::TsuiFileTheme* Value);
protected:
virtual void __fastcall SetEnabled(bool Value);
virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation
);
virtual void __fastcall Paint(void);
public:
__fastcall virtual TsuiDBLookupComboBox(Classes::TComponent* AOwner);
__published:
__property Suimgr::TsuiFileTheme* FileTheme = {read=m_FileTheme, write=SetFileTheme};
__property Suithemes::TsuiUIStyle UIStyle = {read=m_UIStyle, write=SetUIStyle, nodefault};
__property Graphics::TColor BorderColor = {read=m_BorderColor, write=SetBorderColor, nodefault};
__property Graphics::TColor ArrowColor = {read=m_ArrowColor, write=SetArrowColor, nodefault};
__property Graphics::TColor ButtonColor = {read=m_ButtonColor, write=SetButtonColor, nodefault};
public:
#pragma option push -w-inl
/* TDBLookupControl.Destroy */ inline __fastcall virtual ~TsuiDBLookupComboBox(void) { }
#pragma option pop
public:
#pragma option push -w-inl
/* TWinControl.CreateParented */ inline __fastcall TsuiDBLookupComboBox(HWND ParentWindow) : Dbctrls::TDBLookupComboBox(
ParentWindow) { }
#pragma option pop
};
typedef void __fastcall (__closure *ENavClick)(System::TObject* Sender, Dbctrls::TNavigateBtn Button
);
class DELPHICLASS TsuiDBNavigator;
class DELPHICLASS TsuiNavDataLink;
class PASCALIMPLEMENTATION TsuiNavDataLink : public Db::TDataLink
{
typedef Db::TDataLink inherited;
private:
TsuiDBNavigator* FNavigator;
protected:
virtual void __fastcall EditingChanged(void);
virtual void __fastcall DataSetChanged(void);
virtual void __fastcall ActiveChanged(void);
public:
__fastcall TsuiNavDataLink(TsuiDBNavigator* ANav);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -