add the button at run time

guzialguzial Poland
edited 8:30PM in FastReport 3.0
in Delphi i make:
var
  Page : TfrxDialogPage;
  Button: TfrxButtonControl;
begin
  Page := TfrxDialogPage.Create(aReport);
  Page.CreateUniqueName;
  Page.Width := 200;
  Page.Height := 200;
  Page.Position := poScreenCenter;
  Button := TfrxButtonControl.Create(Page);
  Button.CreateUniqueName;
  Button.Caption := 'OK';
  Button.ModalResult := mrOk;
  Button.SetBounds(60, 140, 75, 25);
  aReport.ShowReport;
end;

question is:
how to add to button procedure for some event for example onClick

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.