Einzelnen Beitrag anzeigen

Benutzerbild von Union
Union

Registriert seit: 18. Mär 2004
Ort: Luxembourg
3.487 Beiträge
 
Delphi 7 Enterprise
 
#2

Re: Ein neues Ereigniss hinzufügen (Fastreport)

  Alt 2. Jun 2006, 16:06
Hallo,

ein Beispiel (von vielen) ist in der sehr empfehlenswerten Dokumentation zu lesen:
Zitat:
Any report can become interactive. To perform this, you only need to create a
TfrxReport.OnClickObject event handler. Here is a code example of this handler below:
Delphi-Quellcode:
procedure TForm1.frxReport1ClickObject(Page: TfrxPage; View: TfrxView;
Button: TMouseButton; Shift: TShiftState; var Modified: Boolean);
begin
   if View.Name = 'Memo1then
      ShowMessage('Memo1 contents:' + #13#10 + TfrxMemoView(View).Text);
   if View.Name = 'Memo2then
   begin
      TfrxMemoView(View).Text := InputBox('Edit', 'Edit Memo2 text:',
      TfrxMemoView(View).Text);
      Modified := True;
  end;
end;
Das Gleiche gilt natürlich auch für den Event TFrxReport.OnMouseOverObject.
Ibi fas ubi proxima merces
sudo /Developer/Library/uninstall-devtools --mode=all
  Mit Zitat antworten Zitat