Zoom bar use tip

Post

Posted
Rating:
#1 (In Topic #883)
Avatar
Regular
Cedron is in the usergroup ‘Regular’
Here is a statement that I put in a ScrollBbar to control the Zoom property of an ImageView:

Code (gambas)

  1. TheImageView.Zoom = Exp((TheScrollBar.Value - 50) * 0.6)
  2.  

The same distance on the scroll represents the same multiplication factor.  You can vary the midpoint (50 on the default ScrollBar range of 0 to 100), which varies the end cases, and you can vary the extent by changing the multiplier (0.6).

This combination of controls is so helpful.

Ced

.... and carry a big stick!
Online now: No Back to the top
1 guest and 0 members have just viewed this.