I seem to have a problem with the autofocus...
I do not want the picture to get the focus.. but, It is still happening:
Here's what I do:
- Code: Select all
this.oPic.visible=.T.
this.oPic.DisableAutoFocus
this.opic.DisplayFromFile(cFileName)
this.oPic.ViewerQualityAuto=.T.
IF this.opic.ImageWidth>this.opic.width OR ;
this.opic.ImageHeight>this.opic.height
this.otb_gdview.cbFitwindow.value=1
this.opic.setZoomFitControl()
ELSE
this.otb_gdview.cbFitwindow.value=0
IF this.opic.ImageWidth<this.opic.width/2 OR ;
this.opic.ImageHeight<this.opic.height/2
this.opic.zoom=1.50
ELSE
this.opic.zoom=1.00
ENDIF
I think the problem is in the setZoomFitControl() function
I have noticed that when the picture is to large and i use the setZoomFitControl() function
to make it fit on my window, then the picture receives the focus...
It doesn't happen if the picture doesn't need a resize (when it is smaller then my window)
I use the 4.5 control.
Can you help me with that ?
thnx,
Leo
