⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 wwdatainspector.hpp

📁 胜天进销存源码,国产优秀的进销存
💻 HPP
📖 第 1 页 / 共 3 页
字号:
	Types::TRect SelectCellUpdateRect;
	#pragma pack(pop)
	bool ChildDataChanged;
	int FDataColumns;
	Graphics::TColor FTreeLineColor;
	int FFixedDataRows;
	int lastMouseX;
	int lastMouseY;
	Controls::THintWindow* HintWindow;
	Extctrls::TTimer* HintTimer;
	int HintTimerCount;
	bool FCustomControlKeyMode;
	#pragma pack(push,1)
	Types::TRect UpdateRect;
	#pragma pack(pop)
	#pragma pack(push,1)
	Types::TRect OldBoundsRect;
	#pragma pack(pop)
	Stdctrls::TScrollStyle FScrollBars;
	TwwInspectorIndicatorRow* FIndicatorRow;
	Graphics::TColor PaintCopyTextColor;
	bool SkipSetFocus;
	bool SkipUpdateEditText;
	Grids::TGridCoord lastMouseCoord;
	int HotCol;
	int HotRow;
	bool FDisableThemes;
	void __fastcall HintTimerEvent(System::TObject* Sender);
	void __fastcall EditingChanged(void);
	void __fastcall SetDataSource(Db::TDataSource* value);
	Db::TDataSource* __fastcall GetDataSource(void);
	void __fastcall SetCaptionWidth(int value);
	void __fastcall FieldChanged(Db::TField* Field);
	void __fastcall RecordChanged(Db::TField* Field);
	void __fastcall UpdateData(void);
	int __fastcall GetPageHeight(void);
	bool __fastcall InValidColSizingArea(int x);
	Wwdbdatetimepicker::TwwDBCustomDateTimePicker* __fastcall GetDateTimePicker(void);
	int __fastcall DataRow(int ARow);
	HIDESBASE MESSAGE void __fastcall WMVScroll(Messages::TWMScroll &Message);
	HIDESBASE MESSAGE void __fastcall WMSize(Messages::TWMSize &Message);
	HIDESBASE MESSAGE void __fastcall WMKillFocus(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMSetFocus(Messages::TWMSetFocus &Msg);
	HIDESBASE MESSAGE void __fastcall CMEnter(Messages::TWMNoParams &Message);
	HIDESBASE MESSAGE void __fastcall CMExit(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall WMSetCursor(Messages::TWMSetCursor &Msg);
	HIDESBASE MESSAGE void __fastcall WMEraseBkgnd(Messages::TWMEraseBkgnd &Message);
	HIDESBASE MESSAGE void __fastcall WMChar(Messages::TWMKey &Msg);
	HIDESBASE MESSAGE void __fastcall WMPaint(Messages::TWMPaint &Message);
	HIDESBASE MESSAGE void __fastcall WMLButtonDown(Messages::TWMMouse &Message);
	HIDESBASE MESSAGE void __fastcall WMHScroll(Messages::TWMScroll &Message);
	MESSAGE void __fastcall CMGetDataLink(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseLeave(Messages::TMessage &Message);
	HIDESBASE MESSAGE void __fastcall CMMouseEnter(Messages::TMessage &Message);
	bool __fastcall IsHighlightRowVisible(void);
	void __fastcall GetActiveItemCallback(TwwInspectorItem* Item, void * UserData, bool &AContinue);
	void __fastcall GetActiveRowsCallback(TwwInspectorItem* Item, void * UserData, bool &AContinue);
	void __fastcall ApplySettingsCallback(TwwInspectorItem* Item, void * UserData, bool &AContinue);
	void __fastcall LinkActiveCallback(TwwInspectorItem* Item, void * UserData, bool &AContinue);
	int __fastcall GetActiveRows(void);
	void __fastcall SetCaptionIndent(int val);
	void __fastcall SetItems(TwwInspectorCollection* Value);
	HIDESBASE void __fastcall SetOptions(TwwDataInspectorOptions Value);
	HIDESBASE void __fastcall SetDefaultRowHeight(int Value);
	void __fastcall SetCaptionFont(Graphics::TFont* Value);
	void __fastcall CaptionFontChanged(System::TObject* Sender);
	void __fastcall ToggleCheckbox(TwwInspectorItem* obj);
	void __fastcall SetLineStyleCaption(TwwDataInspectorLineStyle val);
	void __fastcall SetLineStyleData(TwwDataInspectorLineStyle val);
	void __fastcall SetUpdateState(bool Updating);
	bool __fastcall isFocused(void);
	void __fastcall SetActiveItem(TwwInspectorItem* obj);
	TwwInspectorItem* __fastcall GetActiveItem(void);
	Graphics::TColor __fastcall GetCaptionColor(void);
	Graphics::TColor __fastcall GetTreeLineColor(void);
	void __fastcall SetCaptionColor(Graphics::TColor val);
	void __fastcall SetTreeLineColor(Graphics::TColor val);
	TwwInspectorItem* __fastcall GetTopItem(void);
	void __fastcall UpdateRowCount(void);
	void __fastcall EditDataLinkDataChange(System::TObject* Sender);
	void __fastcall EditDataLinkUpdateData(System::TObject* Sender);
	Controls::TWinControl* __fastcall GetActiveEdit(void);
	void __fastcall SetDottedLineColor(Graphics::TColor val);
	void __fastcall SetDataColumns(int val);
	HIDESBASE void __fastcall SetScrollBars(Stdctrls::TScrollStyle Value);
	void __fastcall SetFixedDataRows(int Value);
	
protected:
	Controls::TWinControl* CurrentCustomEdit;
	int CurrentCustomEditRow;
	int CurrentCustomEditCol;
	bool InTracking;
	bool FFocused;
	bool FastDesign;
	Wwriched::TwwDBRichEdit* TempRichEdit;
	DYNAMIC int __fastcall GetEditLimit(void);
	DYNAMIC bool __fastcall CanEditAcceptKey(char Key);
	virtual void __fastcall CurrentCustomEditSetfocus(void);
	virtual void __fastcall DoCalcCustomEdit(TwwInspectorItem* Item, Controls::TWinControl* CustomEdit, bool &AllowCustomEdit);
	virtual bool __fastcall RecordCountIsValid(void);
	virtual Types::TRect __fastcall GetClientRect();
	virtual void __fastcall UpdateScrollBar(void);
	virtual void __fastcall CreateWnd(void);
	virtual void __fastcall Scroll(int Distance);
	virtual Controls::THintWindow* __fastcall CreateHintWindow(void);
	virtual void __fastcall HintMouseMove(Classes::TShiftState Shift, int X, int Y);
	virtual void __fastcall DisplayIndicatorCell(int ACol, const Types::TRect &ARect);
	bool __fastcall EffectiveFocused(void);
	virtual void __fastcall DoCreateHintWindow(TwwInspectorHintWindow* HintWindow, Db::TField* AField, const Types::TRect &R, bool &WordWrap, int &MaxWidth, int &MaxHeight, bool &DoDefault);
	void __fastcall UpdateCurrentEditPosition(void);
	Types::TRect __fastcall ControlRect(int ACol, int ARow);
	void __fastcall UpdateCustomEdit(void);
	virtual void __fastcall FreeHintWindow(void);
	HIDESBASE bool __fastcall IsActiveControl(void);
	void __fastcall ChangeOrientation(bool RightToLeftOrientation);
	void __fastcall InheritedPaint(void);
	virtual void __fastcall FirstTimePaint(void);
	virtual void __fastcall SetDesigner(Controls::TControl* Value);
	virtual void __fastcall Notification(Classes::TComponent* AComponent, Classes::TOperation Operation);
	virtual Wwdbdatetimepicker::TwwDBCustomDateTimePicker* __fastcall CreateDateTimePicker(void);
	virtual Wwdbcomb::TwwDBComboBox* __fastcall CreateDefaultCombo(void);
	virtual void __fastcall DoCreateDateTimePicker(Wwdbdatetimepicker::TwwDBCustomDateTimePicker* ADateTimePicker);
	virtual void __fastcall DoCreateDefaultCombo(Wwdbcomb::TwwDBComboBox* ACombo);
	virtual void __fastcall LinkActive(bool Value);
	DYNAMIC bool __fastcall CanEditModify(void);
	virtual void __fastcall DoFieldChanged(Db::TField* Field);
	virtual void __fastcall DoItemChanged(TwwInspectorItem* Item, AnsiString NewValue);
	virtual Grids::TInplaceEdit* __fastcall CreateEditor(void);
	DYNAMIC void __fastcall DoExit(void);
	DYNAMIC void __fastcall TopLeftChanged(void);
	virtual bool __fastcall CanEditShow(void);
	virtual void __fastcall DrawCell(int ACol, int ARow, const Types::TRect &ARect, Grids::TGridDrawState AState);
	DYNAMIC void __fastcall MouseMove(Classes::TShiftState Shift, int X, int Y);
	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);
	virtual void __fastcall CalcSizingState(int X, int Y, Grids::TGridState &State, int &Index, int &SizingPos, int &SizingOfs, Grids::TGridDrawInfo &FixedInfo);
	virtual void __fastcall UpdateDataColumnWidth(void);
	virtual void __fastcall CreateParams(Controls::TCreateParams &Params);
	DYNAMIC AnsiString __fastcall GetEditText(int ACol, int ARow);
	DYNAMIC AnsiString __fastcall GetEditMask(int ACol, int ARow);
	DYNAMIC void __fastcall SetEditText(int ACol, int ARow, const AnsiString Value);
	virtual void __fastcall Loaded(void);
	virtual bool __fastcall AcquireFocus(void);
	DYNAMIC void __fastcall KeyDown(Word &Key, Classes::TShiftState Shift);
	virtual void __fastcall Paint(void);
	virtual void __fastcall SetFocusCell(int ACol, int ARow);
	virtual bool __fastcall SelectCell(int ACol, int ARow);
	virtual void __fastcall DataChanged(void);
	virtual void __fastcall UpdateActive(void);
	Db::TField* __fastcall GetField(int ARow);
	virtual bool __fastcall UseDefaultEditor(void);
	virtual bool __fastcall UseCheckbox(int ARow);
	virtual Types::TPoint __fastcall ButtonPt(const Types::TRect &ARect, TwwInspectorItem* Obj);
	virtual Types::TRect __fastcall CheckboxRect(const Types::TRect &ARect, TwwInspectorItem* Obj);
	HIDESBASE void __fastcall DrawSizingLine(const Grids::TGridDrawInfo &DrawInfo);
	DYNAMIC void __fastcall RowHeightsChanged(void);
	virtual void __fastcall DoDrawDataCell(TwwInspectorItem* ObjItem, bool ASelected, const Types::TRect &ACellRect, bool &DefaultDrawing);
	virtual void __fastcall InitCustomEdit(Controls::TWinControl* customEdit, TwwInspectorItem* Obj);
	virtual void __fastcall DoDrawCaptionCell(TwwInspectorItem* ObjItem, bool ASelected, const Types::TRect &ACellRect, Types::TRect &ACaptionRect, bool &DefaultTextDrawing);
	virtual Graphics::TCanvas* __fastcall GetCanvas(void);
	bool __fastcall IsDefaultDateTimePicker(TwwInspectorItem* Obj);
	bool __fastcall IsDefaultLookupCombo(TwwInspectorItem* Obj);
	virtual void __fastcall DoCollapse(TwwInspectorItem* ObjItem);
	virtual void __fastcall DoExpand(TwwInspectorItem* ObjItem);
	DYNAMIC void __fastcall Click(void);
	virtual void __fastcall PaintLines(TwwInspectorItem* item);
	DYNAMIC bool __fastcall DoMouseWheelDown(Classes::TShiftState Shift, const Types::TPoint &MousePos);
	DYNAMIC bool __fastcall DoMouseWheelUp(Classes::TShiftState Shift, const Types::TPoint &MousePos);
	virtual void __fastcall DoCalcDataPaintText(TwwInspectorItem* item, AnsiString &PaintText);
	virtual void __fastcall ValidationErrorUsingMask(TwwInspectorItem* Item);
	virtual void __fastcall FillWithFixedBitmap(const Types::TRect &TempRect, int CurRelRow);
	virtual void __fastcall FillWithAlternatingRowBitmap(const Types::TRect &TempRect);
	__property Graphics::TColor InactiveFocusColor = {read=FInactiveFocusColor, write=FInactiveFocusColor, default=536870911};
	__property TwwInspectorItem* TopItem = {read=GetTopItem};
	
public:
	__property Col ;
	__property ColWidths ;
	__property EditorMode ;
	__property GridHeight ;
	__property GridWidth ;
	__property LeftCol ;
	__property Selection ;
	__property Row ;
	__property RowHeights ;
	__property TabStops ;
	__property TopRow ;
	__property RowCount  = {default=5};
	__property Controls::TWinControl* ActiveEdit = {read=GetActiveEdit};
	DYNAMIC bool __fastcall ExecuteAction(Classes::TBasicAction* Action);
	DYNAMIC bool __fastcall UpdateAction(Classes::TBasicAction* Action);
	__property TwwDataInspectorDataLink* DataLink = {read=FDataLink};
	__property Wwdbdatetimepicker::TwwDBCustomDateTimePicker* DefaultDateTimePicker = {read=GetDateTimePicker};
	__property Wwdbcomb::TwwDBComboBox* DefaultCombo = {read=FCombo};
	__property Graphics::TCanvas* Canvas = {read=GetCanvas};
	__property bool CustomControlKeyMode = {read=FCustomControlKeyMode, write=FCustomControlKeyMode, nodefault};
	Types::TRect __fastcall LevelRect(TwwInspectorItem* item);
	void __fastcall MouseToCell(int X, int Y, int &ACol, int &ARow);
	TwwInspectorItem* __fastcall MouseToItem(int X, int Y);
	TwwInspectorItem* __fastcall RefreshActiveItem(void);
	void __fastcall BeginUpdate(void);
	void __fastcall EndUpdate(bool Repaint = false);
	__fastcall virtual TwwDataInspector(Classes::TComponent* AOwner);
	__fastcall virtual ~TwwDataInspector(void);
	void __fastcall ApplySettings(void);
	virtual void __fastcall RefreshItem(TwwInspectorItem* Item);
	virtual int __fastcall GetRowByItem(TwwInspectorItem* AItem);
	void __fastcall IterateItems(TwwInspectorItemCallback CallBack, bool ExpandedOnly, void * UserData);
	HIDESBASE void __fastcall InvalidateRow(int ARow);
	void __fastcall InvalidateRowCol(int ARow, int ACol = 0xffffffff);
	TwwInspectorItem* __fastcall GetItemByFieldName(AnsiString AFieldName);
	virtual TwwInspectorItem* __fastcall GetItemByRow(int ARow, bool Optimize = true);
	TwwInspectorItem* __fastcall GetItemByCaption(AnsiString ACaption);
	TwwInspectorItem* __fastcall GetItemByTagString(AnsiString ATagString);
	bool __fastcall HaveVisibleItem(void);
	TwwInspectorItem* __fastcall GetFirstChild(bool VisibleItemsOnly = true);
	void __fastcall FlushContents(void);
	__property Controls::TControl* Designer = {read=FDesigner, write=SetDesigner};
	__property int ActiveRows = {read=GetActiveRows, nodefault};
	__property InplaceEditor ;
	__property TwwInspectorItem* ActiveItem = {read=GetActiveItem, write=SetActiveItem};
	__property TwwInspectorFieldChangedEvent OnFieldChanged = {read=FOnFieldChanged, write=FOnFieldChanged};
	__property int FixedDataRows = {read=FFixedDataRows, write=SetFixedDataRows, default=0};
	
__published:
	__property bool DisableThemes = {read=FDisableThemes, write=FDisableThemes, nodefault};
	__property Align  = {default=0};
	__property Anchors  = {default=3};
	__property BiDiMode ;
	__property BorderStyle  = {default=1};
	__property Color  = {default=-16777201};
	__property Constraints ;
	__property Ctl3D ;
	__property DragCursor  = {default=-12};
	__property DragKind  = {default=0};
	__property DragMode  = {default=0};
	__property Enabled  = {default=1};
	__property Graphics::TColor CaptionColor = {read=GetCaptionColor, write=SetCaptionColor, default=-16777201};
	__property Graphics::TColor TreeLineColor = {read=GetTreeLineColor, write=SetTreeLineColor, default=16777215};
	__property Font ;
	__property int DataColumns = {read=FDataColumns, write=SetDataColumns, default=1};
	__property TwwInspectorIndicatorRow* IndicatorRow = {read=FIndicatorRow, write=FIndicatorRow};
	__property ParentBiDiMode  = {default=1};
	__property ParentColor  = {default=0};
	__property ParentCtl3D  = {default=1};
	__property ParentFont  = {default=1};
	__property ParentShowHint  = {default=1};
	__property PopupMenu ;
	__property Stdctrls::TScrollStyle ScrollBars = {read=FScrollBars, write=SetScrollBars, default=2};
	__property ShowHint ;
	__property TabOrder  = {default=-1};
	__property TabStop  = {default=1};
	__property bool PictureMaskFromDataSet = {read=FPictureMaskFromDataSet, write=FPictureMaskFromDataSet, default=0};
	__property Db::TDataSource* DataSource = {read=GetDataSource, write=SetDataSource};
	__property TwwInspectorCollection* Items = {read=FItems, write=SetItems};
	__property int DefaultRowHeight = {read=FDefaultRowHeight, write=SetDefaultRowHeight, default=0};
	__property int CaptionWidth = {read=FCaptionWidth, write=SetCaptionWidth, nodefault};
	__property TwwDataInspectorOptions Options = {read=FOptions, write=SetOptions, nodefault};
	__property Wwpaintoptions::TwwGridPaintOptions* PaintOptions = {read=FPaintOptions, write=FPaintOptions};
	__property Graphics::TFont* CaptionFont = {read=FCaptionFont, write=SetCaptionFont};
	__property TwwDataInspectorLineStyle LineStyleCaption = {read=FLineStyleCaption, write=SetLineStyleCaption, default=3};
	__property TwwDataInspectorLineStyle LineStyleData = {read=FLineStyleData, write=SetLineStyleData, default=3};
	__property Graphics::TColor DottedLineColor = {read=FDottedLineColor, write=SetDottedLineColor, default=-16777200};
	__property TwwInspectorButtonOptions* ButtonOptions = {read=FButtonOptions, write=FButtonOptions};
	__property bool ReadOnly = {read=FReadOnly, write=FReadOnly, default=0};
	__property int CaptionIndent = {read=FCaptionIndent, write=SetCaptionIndent, default=12};
	__property TwwInspectorTabSetFocusStyle SetFocusTabStyle = {read=FSetFocusTabStyle, write=FSetFocusTabStyle, default=0};
	__property Visible  = {default=1};
	__property TwwInspectorCalcCustomEditEvent OnCalcCustomEdit = {read=FOnCalcCustomEdit, write=FOnCalcCustomEdit};
	__property OnClick ;
	__property TwwCreateInspectorHintWindowEvent OnCreateHintWindow = {read=FOnCreateHintWindow, write=FOnCreateHintWindow};
	__property OnDblClick ;
	__property OnDragDrop ;
	__property OnDragOver ;
	__property TwwInspectorDrawDataCellEvent OnDrawDataCell = {read=FOnDrawDataCell, write=FOnDrawDataCell};
	__property TwwInspectorDrawICellEvent OnDrawIndicatorCell = {read=FOnDrawIndicatorCell, write=FOnDrawIndicatorCell};
	__property OnEndDock ;
	__property OnEndDrag ;
	__property OnEnter ;
	__property OnExit ;
	__property OnKeyDown ;
	__property OnKeyPress ;
	__property OnKeyUp ;
	__property OnMouseDown ;
	__property OnMouseMove ;
	__property OnMouseUp ;
	__property OnMouseWheelDown ;
	__property OnMouseWheelUp ;
	__property TwwInspectorBeforeSelectCellEvent OnBeforeSelectCell = {read=FOnBeforeSelectCell, write=FOnBeforeSelectCell};
	__property TwwInspectorAfterSelectCellEvent OnAfterSelectCell = {read=FOnAfterSelectCell, write=FOnAfterSelectCell};
	__property OnStartDock ;
	__property OnStartDrag ;
	__property Classes::TNotifyEvent OnTopLeftChanged = {read=FOnTopLeftChanged, write=FOnTopLeftChanged};
	__property OnContextPopup ;
	__property TwwInspectorCreateDTPEvent OnCreateDateTimePicker = {read=FOnCreateDateTimePicker, write=FOnCreateDateTimePicker};
	__property TwwInspectorCreateComboEvent OnCreateDefaultCombo = {read=FOnCreateDefaultCombo, write=FOnCreateDefaultCombo};
	__property TwwInspectorDrawCaptionEvent OnDrawCaptionCell = {read=FOnDrawCaptionCell, write=FOnDrawCaptionCell};
	__property TwwInspectorNotifyEvent OnBeforePaint = {read=FOnBeforePaint, write=FOnBeforePaint};
	__property TwwInspectorCanExpandEvent OnCanExpand = {read=FOnCanExpand, write=FOnCanExpand};

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -