>LOCAL oFrm > >oFrm= CREATEOBJECT("TestForm") >TEXT TO oFrm.Edit1.Value NOSHOW PRETEXT 1 + 2 > The problem displayed here is to do with > using the mouse wheel to scroll the edit > box. When the edit box has focus and the > edit box is scrolled, any attempt to > select text with the mouse will work > as expected. However, when the edit box > does not have focus and the edit box is > scrolled, any attempt to select text with > the mouse will jump the box back to its > original position. The selection doesn't > begin where you would expect. > > This drives my users crazy. In all their > other applications (eg MS Outlook) this > works as expected. However in our VFP > application it jumps around in a very > illogical fashion. >ENDTEXT > >oFrm.Show(1) > >************************************ >DEFINE CLASS TestForm AS Form > ADD OBJECT Text1 AS TextBox WITH ; > Height= 37, ; > Left= 36, ; > TabIndex= 1, ; > Top= 12, ; > Width= 289 > > ADD OBJECT Edit1 AS EditBox WITH ; > Height= 109, ; > Left= 36, ; > ReadOnly= .t., ; > TabIndex= 2, ; > Top= 84, ; > Width= 289, ; > Value= "" >ENDDEFINE >>
Procedure Edit1.MouseWheel Lparameters nDirection, nShift, nXCoord, nYCoord If Empty(This.Tag) This.Tag='set' This.SetFocus() Endif Endproc Procedure Edit1.LostFocus This.Tag='' EndprocCetin