Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to display end of memo field and put cursor at end?
Message
De
25/01/2004 04:40:25
 
 
À
24/01/2004 11:06:24
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00869717
Message ID:
00870364
Vues:
13
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform