Reputation: 2186
Is it possible disable minimize in fast report 6?
For some reason in delphi fastreport is minimized automatically.
Only close and maximize button.
Any solution?
Upvotes: 1
Views: 529
Reputation: 14928
Just write in the OnPreview
event handler
procedure TForm1.frxReport1Preview(Sender: TObject);
begin
if Assigned(frxReport1.PreviewForm) then
frxReport1.PreviewForm.BorderIcons := [TBorderIcon.biSystemMenu, TBorderIcon.biMaximize]
end;
And as you can see the minimize button is disabled
Note that the PreviewForm
will be created only when you show the report, so the OnPreview
event handler is the right place to write your code.
Upvotes: 5