Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to auto skip readonly=.t. column to the next
Message
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows 7
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01498612
Message ID:
01498621
Views:
47
>>>hi all
>>>i've several readonly=.t. columns on my grid and i want to auto skip from readonly=.t. column to the next column while navigation or entering data how can i do this?
>>>TIA
>>
>>Assuming your columns are not movable, put appropriate code in the last non-readonly column's textbox KeyPress intercepting TAB
>hi Naomi
>columns are movable :( and should movable cause column orders are user preferred

If that's the case, the code becomes a bit more tricky (you will need to get a reference to next column and check if it's read only or not, etc.) but doable.

Or, I just thought of one idea - you can bindevent Keypress to form's method. Each textbox will determine if it's readonly or not and if it is, it will just do NODEFAULT and TAB, so it will be passed to the next column.
If it's not broken, fix it until it is.


My Blog
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform