Note: You must be registered in order to post a reply. To register, click here. Registration is FREE!
T O P I C R E V I E W
PeterPanino
Posted - Mar 07 2024 : 12:04:03 The events TImageEnView.OnZoomIn and TImageEnView.OnZoomOut are not triggered when setting the Zoom programmatically, for example:
ImageEnView1.Zoom := ImageEnView1.Zoom + 10;
However, they are triggered when setting the Zoom with the mouse wheel.
Which is nice and easy, unlike the counter which would be difficult. i.e. if OnZoomIn reacted to code changes, then how would you differentiate between the event occurring due to a code change or a user change?
Think about TEdit.OnChange or TCheckbox.OnClick, how do you determine whether the change was by the user or by your code?