Information générale
Catégorie:
Contrôles ActiveX en VFP
Try to add in the RTF.LostFocus event:
IF LASTKEY()=9
NODEFAULT
WITH thisform.Olecontrol2 &&must be full name, 'this' does not work
keyboard " " &&any code to replace lastkey pressed
.text=.text+SPACE(4)
.selstart=LEN(.text)
endwith
ELSE
DODEFAULT()
endif
>I am using this control in an application and it seems that one can not use the TAB key to indent the text with this control. As soon as the Tab key is pressed, the focus of the program is set to the next object on the form.
>This is a little frustrating, because most users instinctively use the TAB key for indentation.
>
>Is there a way of avoiding this changing of the focus when using the TAB key?
>
>Armando
Précédent
Suivant
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement