Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
RTF ActiveX Control
Message
 
À
16/04/2003 11:07:45
Armando Villasmil
Visualpoint Business Solutions
Oranjestad, Aruba
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00778361
Message ID:
00778438
Vues:
60
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
Fil
Voir

Click here to load this message in the networking platform