Poi*_*ter 1 delphi fastreport delphi-2010 delphi-xe
是否可以在快速报告6中禁用最小化?
出于某种原因,在delphi中,fastreport会自动最小化。
仅关闭并最大化按钮。
有什么办法吗?
只需在OnPreview事件处理程序中编写
procedure TForm1.frxReport1Preview(Sender: TObject);
begin
if Assigned(frxReport1.PreviewForm) then
frxReport1.PreviewForm.BorderIcons := [TBorderIcon.biSystemMenu, TBorderIcon.biMaximize]
end;
Run Code Online (Sandbox Code Playgroud)
请注意,PreviewForm仅当您显示报告时才会创建,因此OnPreview事件处理程序是编写代码的正确位置。