Quantcast
Channel: FiveTech Software tech support forums
Viewing all articles
Browse latest Browse all 26212

TImage zoom

$
0
0
Thanks for the help. This program is quite normal increases/decreases the image oImg:=TImage():New(...) oImg:Progress(.F.) oImg:Cargo:=0 oImg:bMouseWheel = {| nKey, nDelta, nXPos, nYPos | Test()} procedure Test(nDelta) local cnt local nWidth, nHeight // The sizes TImage on dialog local hDC if (nDelta<0.and.oImg:Cargo-1>=0).or. (nDelta>0.and.oImg:Cargo+1<=14) if oImg:Cargo!=0.and.nDelta<0 oImg:Refresh() Vrt_Dlg() endif hDC:=GetDC(oImg:hWnd) cnt:=oImg:Cargo+=iif(nDelta<0, -1, 1) StretchBlt( hDC, 0, 0, nWidth, nHeight, ; hDC, ; 30*cnt, 30*cnt, ; nWidth-(30*cnt*2), ; nHeight-(30*cnt*2), 13369376 ) oImg:ReleaseDC() endif RETURN procedure Vrt_Dlg local oVrt DEFINE DIALOG oVrt FROM 0,0 TO 0,0 PIXEL ACTIVATE DIALOG oVrt ON INIT oVrt:End() return

Viewing all articles
Browse latest Browse all 26212

Trending Articles