Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange memo editing behaviour
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00125100
Message ID:
00125513
Vues:
38
>>>Rex,
>>>
>>>Try changing the code to this;
>>>
>>>
>>>THISFORM.pbPrint.Enabled = NOT EMPTY(THIS.Value)
>>>THISFORM.pbExport.Enabled = NOT EMPTY(THIS.Value)
>>>
>>
>
>Rex,
>
>The Keypress is too early, it fires before the control gets the keystroke. PUt it in the InteractiveChange event, it fires after the control gets the keystroke.

Jim,

Still not working when the code is in the InteractiveChange method.

Also, I found further problems with SelStart. Your suggestion of using the form property nSelStart to save the current insertion point works fine, until I insert text into the textbox - then it resets SelStart to zero.

I found a MS Knowledgebase item in a similar vein using a search keyword of 'SelStart' (Q131095). It talks about the NODEFAULT keyword and insertion of text but doesn't appear to help me.

Rex
Rex Toomey
ISD Port Macquarie NSW
Australia

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

Click here to load this message in the networking platform