Wiki Home

Sel Start


Namespace: VFP
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 Text Box WITH ;
Height= 37, ;
Left= 36, ;
TabIndex= 1, ;
Top= 12, ;
Width= 289

ADD OBJECT Edit1 AS Edit Box WITH ;
Height= 109, ;
Left= 36, ;
ReadOnly= .t., ;
TabIndex= 2, ;
Top= 84, ;
Width= 289, ;
Value= ""
ENDDEFINE
( Topic last updated: 2018.12.14 06:48:00 AM )