Pointer
Pointer

Reputation: 2186

Disable minimize in fast report 6

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

Answers (1)

Ilyes
Ilyes

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 disabledenter image description here

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

Related Questions