Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
KeyPress and the Tab Key
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00729134
Message ID:
00729142
Views:
17
--------------------------------------
What I am trying to do is to allow my users to hit the TAB key and see a behavior like what TAB does, but without embedding the TAB character in my text.

I've got the control set to accept the use of the TAB key. The problem is with an external application. The external application which also uses my data, does not format the text the way my VFP application does. This problem only comes up when my text contains TAB characters... Since I can not change the external application, I have to change my VFP application...I have to remove the TAB characters from my text. I also need to have the users think the TAB still behaves as they are used to.

It seems like the safest way to do that and to retain correct formating of the text, is to replace the TAB Character with 3 spaces as the user types.

>--------------------------------------
>I did not understand well, but "allowtabs" propertie in your Edit control can help you?
>
>--------------------------------------
>>I have an editbox in which the users are used to using the tab key and in days long gone (at least for now), that tab key would actually insert tabs (go figure)
>>
>>Now because as we take the reports entered in these editboxes, and move them to the web...and the web side had great difficulty with the tabs in the text (different expression of how wide a tab is
>>and perhaps a different understanding of tab-stops),
>>my editboxes now give me 3 blank spaces instead of tabs, and my tab-stops have become a thing of the past...at least for now....
>>Now when the user hits the tab key I drop in 3 spaces instead.
>>
>>I'm not sure if I'm doing this right and would like your advise.
>>Now I'm trapping the tab key, by using the editbox KeyPress Event.
>>I think I'm doing it wrong tho....
>>Right now I'm doing a
>>KEYBOARD '{BACKSPACE}' && remove the tab just typed
>>KEYBOARD ' ' && replace it with 3 spaces
>>
>>I'm still having text formatting issues, but now they're on my side not the WEB side. Sometimes the text, separated by tab key inserted spaces, does not remain in it's place, after being saved into the memo field associated with the editbox.
>>
>>Any ideas?
>>How would you do this tab replacement?
>>(changing the web side to handle tabs is out for now)
>>
>>BTW - any idea as to how I can simulate the TAB STOP behavior?
>>---------------------------------------
Previous
Reply
Map
View

Click here to load this message in the networking platform