Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to display end of memo field and put cursor at end?
Message
From
25/01/2004 04:40:25
 
 
To
24/01/2004 11:06:24
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00869717
Message ID:
00870364
Views:
12
Hi Peter,

>>>>>>>>>>
1) Make sure the EDITBOX.SELECTONENTRY property is FALSE.

2) Make sure the EDITBOX.FORMAT property is empty at design time.

3) Make sure the EDITBOX.FORMAT property is empty at run time.

4) Place this code in the EDITBOX WHEN method:

THIS.SELSTART = 99999
RETURN .T.
>>>>>>>>>>>

these are a not necessary restrictions.

Next conditions are sufficient:
1) Make sure the EDITBOX.SELECTONENTRY property is FALSE.

2) Make sure that 'K' $ EDITBOX.FORMAT it is false. 

3) Place this code in the last executed line of EDITBOX GOTFOCUS method:

     THIS.SELSTART = 2147483647
But these not resolve the mouse set focus:
For this, you can use next schema:
set 1),2)
3) Place this code in the last executed lines of EDITBOX GOTFOCUS method:
    THIS.TAG = "G"
    THIS.SELSTART = 2147483647

4)  Place this code in the last executed lines of EDITBOX CLICK method:

    IF M.THIS.TAG == "G"
         THIS.TAG = ""
         THIS.SELSTART = 2147483647
    ENDIF
FABIO
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform