You are reading help file online using chmlib.com
|
Rave Reports Developer Reference TRvRenderPreview. OnZoomChange event (read/write/published) |
Top Previous Next |
Declaration procedure OnZoomChange(Sender: TObject);
Category
Description This event will be called whenever the current zoom factor changes for the preview screen. This can be useful for updating the current zoom factor on visual controls on the preview screen.
NOTE: If an OnZoomChange event handler is created, it is responsible for redrawing the page by calling RedrawPage.
See also TRvRenderPreview Class, RedrawPage, ZoomIn, ZoomOut
Example Delphi procedure TRpPreviewForm.RvRenderPreview1ZoomChange(Sender: TObject); var S1: string[10]; begin Str(RvRenderPreview1.ZoomFactor:1:1,S1); ZoomEdit.Text := S1; RvRenderPreview1.RedrawPage; end;
Example (C++Builder) void __fastcall TForm1::RvRenderPreview1ZoomChange(TObject *Sender) { AnsiString S1; S1 = FloatToStrF(RvRenderPreview1->ZoomFactor, ffGeneral,1,1); ZoomEdit->Text = S1; RvRenderPreview1->RedrawPage(); } |
You are reading help file online using chmlib.com
|