Recent

Author Topic: Add Button on Top Panel in frPreviewForm  (Read 3095 times)

kit

  • New Member
  • *
  • Posts: 39
Add Button on Top Panel in frPreviewForm
« on: December 21, 2015, 01:19:12 pm »
How to add Button on Top Panel in frPreviewForm

GetMem

  • Hero Member
  • *****
  • Posts: 4017
Re: Add Button on Top Panel in frPreviewForm
« Reply #1 on: December 21, 2015, 02:02:35 pm »
Are you talking about lazreport preview form? If yes, you can set which button appears by changing TfrReport component PreviewButtons property. If you need more buttons, perhaps you should modify frPreviewForm(lr_view.pas) or use the TfrPreview component to make a completely custom report.

kit

  • New Member
  • *
  • Posts: 39
Re: Add Button on Top Panel in frPreviewForm
« Reply #2 on: December 21, 2015, 03:26:01 pm »
In Delphi this works:
TSpeedButton.Create(TfrxPreviewForm(frxReport.PreviewForm).ToolBar)
Can i do something on Lazarus for run-time report?

 

TinyPortal © 2005-2018