📄 frxclass.pas
字号:
property Text: WideString read GetText write SetText;
property Value: Variant read FValue write FValue;
// analogue of Memo property
property Lines: TWideStrings read FMemo write SetMemo;
property AllowExpressions: Boolean read FAllowExpressions write FAllowExpressions default True;
property AllowHTMLTags: Boolean read FAllowHTMLTags write FAllowHTMLTags default False;
property AutoWidth: Boolean read FAutoWidth write FAutoWidth default False;
property CharSpacing: Extended read FCharSpacing write FCharSpacing stored IsCharSpacingStored;
property Clipped: Boolean read FClipped write FClipped default True;
property DisplayFormat: TfrxFormat read FDisplayFormat write SetDisplayFormat;
property ExpressionDelimiters: String read FExpressionDelimiters
write FExpressionDelimiters stored IsExprDelimitersStored;
property FlowTo: TfrxCustomMemoView read FFlowTo write FFlowTo;
property GapX: Extended read FGapX write FGapX stored IsGapXStored;
property GapY: Extended read FGapY write FGapY stored IsGapYStored;
property HAlign: TfrxHAlign read FHAlign write FHAlign default haLeft;
property HideZeros: Boolean read FHideZeros write FHideZeros default False;
property Highlight: TfrxHighlight read FHighlight write SetHighlight
stored IsHighlightStored;
property LineSpacing: Extended read FLineSpacing write FLineSpacing stored IsLineSpacingStored;
property Memo: TWideStrings read FMemo write SetMemo;
property ParagraphGap: Extended read FParagraphGap write FParagraphGap stored IsParagraphGapStored;
property Rotation: Integer read FRotation write SetRotation default 0;
property RTLReading: Boolean read FRTLReading write FRTLReading default False;
property Style: String read FStyle write SetStyle;
property SuppressRepeated: Boolean read FSuppressRepeated write FSuppressRepeated default False;
property Underlines: Boolean read FUnderlines write FUnderlines default False;
property WordBreak: Boolean read FWordBreak write FWordBreak default False;
property WordWrap: Boolean read FWordWrap write FWordWrap default True;
property VAlign: TfrxVAlign read FVAlign write FVAlign default vaTop;
published
property Cursor;
property TagStr;
property URL;
end;
TfrxMemoView = class(TfrxCustomMemoView)
published
property AutoWidth;
property AllowExpressions;
property AllowHTMLTags;
property BrushStyle;
property CharSpacing;
property Clipped;
property Color;
property DataField;
property DataSet;
property DataSetName;
property DisplayFormat;
property ExpressionDelimiters;
property FlowTo;
property Font;
property Frame;
property GapX;
property GapY;
property HAlign;
property HideZeros;
property Highlight;
property LineSpacing;
property Memo;
property ParagraphGap;
property ParentFont;
property Rotation;
property RTLReading;
property Style;
property SuppressRepeated;
property Underlines;
property WordBreak;
property WordWrap;
property VAlign;
end;
TfrxSysMemoView = class(TfrxCustomMemoView)
public
class function GetDescription: String; override;
published
property AutoWidth;
property BrushStyle;
property CharSpacing;
property Color;
property DisplayFormat;
property Font;
property Frame;
property GapX;
property GapY;
property HAlign;
property HideZeros;
property Highlight;
property Memo;
property ParentFont;
property Rotation;
property RTLReading;
property Style;
property SuppressRepeated;
property VAlign;
property WordWrap;
end;
TfrxCustomLineView = class(TfrxStretcheable)
private
FDiagonal: Boolean;
procedure DrawDiagonalLine;
public
constructor Create(AOwner: TComponent); override;
constructor DesignCreate(AOwner: TComponent; Flags: Word); override;
procedure Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX, OffsetY: Extended); override;
property Diagonal: Boolean read FDiagonal write FDiagonal default False;
end;
TfrxLineView = class(TfrxCustomLineView)
public
class function GetDescription: String; override;
published
property Frame;
property Diagonal;
end;
TfrxPictureView = class(TfrxView)
private
FAutoSize: Boolean;
FCenter: Boolean;
FKeepAspectRatio: Boolean;
FPicture: TPicture;
FPictureChanged: Boolean;
FStretched: Boolean;
procedure SetPicture(const Value: TPicture);
procedure PictureChanged(Sender: TObject);
procedure SetAutoSize(const Value: Boolean);
function LoadPictureFromStream(s: TStream): HResult;
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function Diff(AComponent: TfrxComponent): String; override;
procedure Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX, OffsetY: Extended); override;
procedure GetData; override;
class function GetDescription: String; override;
published
property Cursor;
property AutoSize: Boolean read FAutoSize write SetAutoSize default False;
property Center: Boolean read FCenter write FCenter default False;
property DataField;
property DataSet;
property DataSetName;
property Frame;
property KeepAspectRatio: Boolean read FKeepAspectRatio write FKeepAspectRatio default True;
property Picture: TPicture read FPicture write SetPicture;
property Stretched: Boolean read FStretched write FStretched default True;
property TagStr;
property URL;
end;
TfrxShapeView = class(TfrxView)
private
FCurve: Integer;
FShape: TfrxShapeKind;
public
constructor Create(AOwner: TComponent); override;
constructor DesignCreate(AOwner: TComponent; Flags: Word); override;
function Diff(AComponent: TfrxComponent): String; override;
procedure Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX, OffsetY: Extended); override;
class function GetDescription: String; override;
published
property BrushStyle;
property Color;
property Cursor;
property Curve: Integer read FCurve write FCurve default 0;
property Frame;
property Shape: TfrxShapeKind read FShape write FShape default skRectangle;
property TagStr;
property URL;
end;
TfrxSubreport = class(TfrxView)
private
FPage: TfrxReportPage;
FPrintOnParent: Boolean;
procedure SetPage(const Value: TfrxReportPage);
public
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
procedure Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX, OffsetY: Extended); override;
class function GetDescription: String; override;
published
property Page: TfrxReportPage read FPage write SetPage;
property PrintOnParent: Boolean read FPrintOnParent write FPrintOnParent
default False;
end;
{ Bands }
TfrxChild = class;
TfrxBand = class(TfrxReportComponent)
private
FAllowSplit: Boolean;
FChild: TfrxChild;
FKeepChild: Boolean;
FOnAfterCalcHeight: TfrxNotifyEvent;
FOutlineText: String;
FOverflow: Boolean;
FStartNewPage: Boolean;
FStretched: Boolean;
FPrintChildIfInvisible: Boolean;
FVertical: Boolean;
function GetBandName: String;
procedure SetChild(Value: TfrxChild);
protected
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
procedure SetLeft(Value: Extended); override;
procedure SetTop(Value: Extended); override;
procedure SetHeight(Value: Extended); override;
public
FSubBands: TList; { list of subbands }
FHeader, FFooter, FGroup: TfrxBand; { h./f./g. bands }
FLineN: Integer; { used for Line# }
FLineThrough: Integer; { used for LineThrough# }
FOriginalObjectsCount: Integer; { used for TfrxSubReport.PrintOnParent }
FHasVBands: Boolean; { whether the band should show vbands }
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
function BandNumber: Integer;
procedure Draw(Canvas: TCanvas; ScaleX, ScaleY, OffsetX, OffsetY: Extended); override;
class function GetDescription: String; override;
property AllowSplit: Boolean read FAllowSplit write FAllowSplit default False;
property BandName: String read GetBandName;
property Child: TfrxChild read FChild write SetChild;
property KeepChild: Boolean read FKeepChild write FKeepChild default False;
property OutlineText: String read FOutlineText write FOutlineText;
property Overflow: Boolean read FOverflow write FOverflow;
property PrintChildIfInvisible: Boolean read FPrintChildIfInvisible
write FPrintChildIfInvisible default False;
property StartNewPage: Boolean read FStartNewPage write FStartNewPage default False;
property Stretched: Boolean read FStretched write FStretched default False;
published
property Font;
property Height;
property Left;
property ParentFont;
property Restrictions;
property Top;
property Vertical: Boolean read FVertical write FVertical default False;
property Visible;
property Width;
property OnAfterCalcHeight: TfrxNotifyEvent read FOnAfterCalcHeight
write FOnAfterCalcHeight;
property OnAfterPrint;
property OnBeforePrint;
end;
TfrxBandClass = class of TfrxBand;
TfrxDataBand = class(TfrxBand)
private
FColumnGap: Extended;
FColumnWidth: Extended;
FColumns: Integer;
FCurColumn: Integer;
FDataSet: TfrxDataSet;
FDataSetName: String;
FFooterAfterEach: Boolean;
FKeepFooter: Boolean;
FKeepHeader: Boolean;
FKeepTogether: Boolean;
FPrintIfDetailEmpty: Boolean;
FRowCount: Integer;
FOnMasterDetail: TfrxNotifyEvent;
FVirtualDataSet: TfrxUserDataSet;
procedure SetCurColumn(Value: Integer);
procedure SetRowCount(const Value: Integer);
procedure SetDataSet(const Value: TfrxDataSet);
procedure SetDataSetName(const Value: String);
function GetDataSetName: String;
protected
procedure Notification(AComponent: TComponent; Operation: TOperation); override;
public
FMaxY: Extended; { used for columns }
constructor Create(AOwner: TComponent); override;
destructor Destroy; override;
class function GetDescription: String; override;
property CurColumn: Integer read FCurColumn write SetCurColumn;
property VirtualDataSet: TfrxUserDataSet read FVirtualDataSet;
published
property AllowSplit;
property Child;
property Columns: Integer read FColumns write FColumns default 0;
property ColumnWidth: Extended read FColumnWidth write FColumnWidth;
property ColumnGap: Extended read FColumnGap write FColumnGap;
property DataSet: TfrxDataSet read FDataSet write SetDataSet;
property DataSetName: String read GetDataSetName write SetDataSetName;
property FooterAfterEach: Boolean read FFooterAfterEach write FFooterAfterEach default False;
property KeepChild;
property KeepFooter: Boolean read FKeepFooter write FKeepFooter default False;
property KeepHeader: Boolean read FKeepHeader write FKeepHeader default False;
property KeepTogether: Boolean read FKeepTogether write FKeepTogether default False;
property OutlineText;
property PrintChildIfInvisible;
property PrintIfDetailEmpty: Boolean read FPrintIfDetailEmpty
write FPrintIfDetailEmpty default False;
property RowCount: Integer read FRowCount write SetRowCount;
property StartNewPage;
property Stretched;
property OnMasterDetail: TfrxNotifyEvent read FOnMasterDetail write FOnMasterDetail;
end;
TfrxHeader = class(TfrxBand)
private
FReprintOnNewPage: Boolean;
published
property AllowSplit;
property Child;
property KeepChild;
property PrintChildIfInvisible;
property ReprintOnNewPage: Boolean read FReprintOnNewPage write FReprintOnNewPage default False;
property StartNewPage;
property Stretched;
end;
TfrxFooter = class(TfrxBand)
private
public
published
property AllowSplit;
property Child;
property KeepChild;
property PrintChildIfInvisible;
property Stretched;
end;
TfrxMasterData = class(TfrxDataBand)
private
public
published
end;
TfrxDetailData = class(TfrxDataBand)
private
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -