FlexCel Studio for VCL/LCL
ContentsIndex
PreviousUpNext
TFlexCelGrid.OnZoomChanged Event

Use this event to know when zoom has changed in the sheet.

Pascal
property OnZoomChanged: TOnZoomChangedEvent;
C++
__property TOnZoomChangedEvent OnZoomChanged;

The user might change the zoom by doing ctrl- scroll wheel, so this event gives you a way to be notified of that and update your UI accordingly.

In the XlsViewer demo, we use this event to update the zoom trackbar: 

 

procedure TMain.DataZoomChanged(Sender: TObject; Zoom: Integer);
begin
  TrackBarZoom.Position := Zoom
end;
Copyright (c) 2002-2008 TMS Software. All rights reserved.
What do you think about this topic? Send feedback!