Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Tabbing in RTF control
Message
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00526896
Message ID:
00526922
Views:
13
Charlie,
Add the following code to the rtf.KeyDown() event:
*** ActiveX Control Event ***
LPARAMETERS keycode, shift

IF KeyCode = 9
    *-- suppress TAB key (similar to VFP's NODEFAULT)
    KeyCode = 0
    *-- manually insert a TAB character
    This.SelText = CHR(9)
ENDIF
HTH

>Hi:
>
>With the RTF control, you have to hit CRTL+TAB to insert a tab in the current document. Hitting TAB alone moves the focus to the next object and does not insert a tab. Since this is unfamiliar to people, I would like it work as expected. Is there any way to override this behavoir? I tried setting all tab stops to .F., but that didn't work.
>
>Thanx,
>Charlie
Daniel
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform