LOCAL oZSelect1, nZSelect1 := 5 // original
REDEFINE IMAGE oImage ID 510 FILENAME cImage OF oDlg1 PIXEL SCROLL ADJUST BORDER
// NOT NEEDED !!
// oImage:bLClicked := {|| ZOOM_ADJ(oImage, nZoom, "M") } // minus
// oImage:bRClicked := {|| ZOOM_ADJ(oImage, nZoom, "P") } // plus
REDEFINE SELEX oZSelect1 VAR nZSelect1 OF oDlg1 ID 520 ;
ITEMS "-80", "-60", "-40", "-20", "0", "+20", "+40", "+60", "+80", "+100" ;
GRADIENT OUTTRACK { { 0.5, 16443068, 16312263 }, ;
{ 0.5, 16312263, 16443068 } } ;
GRADIENT INTRACK { { 1, 5426223, 1071100 }, ;
{ 1, 1071100, 5426223 } } ;
THUMBSIZE 20, 20 ROUNDSIZE 5 ;
COLOR THUMB 14853684 ;
COLORTEXT 128, 32768 ;
TITLE "Image-zoom" TOP ;
FONT oDataFont ;
ACTION ( nZSelect1 := oZSelect1:nOption, ;
oImage:lStretch := .f., ;
nZoom := oImage:Zoom(), ;
IIF( nZSelect1 = 1, nZoom := 0.2, NIL ), ;
IIF( nZSelect1 = 2, nZoom := 0.4, NIL ), ;
IIF( nZSelect1 = 3, nZoom := 0.6, NIL ), ;
IIF( nZSelect1 = 4, nZoom := 0.8, NIL ), ;
IIF( nZSelect1 = 5, nZoom := 1, NIL ), ;
IIF( nZSelect1 = 6, nZoom := 1.2, NIL ), ;
IIF( nZSelect1 = 7, nZoom := 1.4, NIL ), ;
IIF( nZSelect1 = 8, nZoom := 1.6, NIL ), ;
IIF( nZSelect1 = 9, nZoom := 1.8, NIL ), ;
IIF( nZSelect1 = 10, nZoom := 2, NIL ), ;
oImage:Zoom( nZoom ), oImage:Refresh(), oImage:ScrollAdjust() ) ;
COLORTITLE 0