Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange memo editing behaviour
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Strange memo editing behaviour
Divers
Thread ID:
00125100
Message ID:
00125100
Vues:
73
On a form which is being used to edit a memo in an editbox, I have the following code in the InteractiveChange event -

IF EMPTY(THISFORM.txtMemo.Value)
THISFORM.pbPrint.Enabled = .F.
THISFORM.pbExport.Enabled = .F.
ELSE
THISFORM.pbPrint.Enabled = .T.
THISFORM.pbExport.Enabled = .T.
ENDIF

The idea being that if the txtMemo is empty, disable Print and Export push buttons, otherwise they are enabled.

The problem is that when more than a full screen is filled in the editbox, the cursor starts jumping all over the place, forcing the text to scroll up above the top line of the editbox. You then can't see what is being typed.

I think it may have something to do with keypresses stored in the keyboard buffer. I have tried CLEAR TYPEAHEAD without success.

I know the problem is the InteractiveChange event, because if I move this code to the KeyPress event, the problem generally goes away. However, I loose the nice facility to interactively turn the push buttons on and off.

Any suggestions would be most appreciated.

Rex Toomey
Australia
Rex Toomey
ISD Port Macquarie NSW
Australia

'Inside every older person is a younger person wondering what happened.'
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform