Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting TAB width
Message
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00729482
Message ID:
00729717
Views:
15
>>>-----------------------------------------------
>>>Where in VFP do I control how wide a TAB is when used in an EDITBOX?
>>>I don't see a
>>>SET TABWITH TO ____
>>>
>>>Also, is there a TABSTOP?
>>>like in word where I can set the first tab to take me to column 10 and the second tab to take me to column 46, etc.
>>>
>>>What is it that controls these things in VFP?
>>>-----------------------------------------------
>>
>>The normal TAB key behavior on most controls is to move to the next control, so you normally would not be able to do this. But you can probably intercept the TAB in the KeyPress event of the control and programatically go back to the control inserting the desired number of spaces or even a TAB character by using the KEYBOARD command.
>>
>>The problem then becomes that the TAB key will not jump to the next control on the form when this is what the user wants and expects. :)
>-----------------------------------------------
>In an editbox you have the property ALLOWTABS
>This allows the user to input tabs into their text...
>My users are used to this and expect and desire this behavior in this control.

Well that teaches me about this property of the editbox. However the KEYBOARD approach might still work for you if you don't set this property to true.

Another option you can consider is the use of a richtextbox control for finer-grained control of free text entry, including settings for tab stops.
Previous
Reply
Map
View

Click here to load this message in the networking platform