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.'