Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Prevent clicking into textbox on grid?
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00043876
Message ID:
00044095
Views:
39
That is the Enabled property of the Text Box...I don't think setting the Enabled property of the column will do it...


>Set the Enabled property to False.
>
>You may want to change the default Disabled Forecolor property too...
>
>>Someone must have seen this:
>>
>>I have created a grid that has several columns. Some columns are designed to be editable and several are designed to be read-only (like the columns you would freeze on the left side of a spreadsheet). I have set the tabstop for the textbox in the readonly columns to be .F., plus readonly=.T. and enabled=.F. and it does not let me TAB into them (this is the good news). However, if I mouse click into these textboxes, it highlights them (in off-color) and appears as if the cell has the focus (they are still read-only), even though the GOTFOCUS of the textbox for the cell does not fire (so it really doesn't have the focus).
>>
>>I don't want the users to be able to get into my read-only columns with tabs or the mouse! Can anyone shed some light on how to prevent these text boxes getting this "ghost-focus" - it would be best if the click had no affect, and focus remained on the previously highlighted valid editing cell?
Joseph C. Kempel
Systems Analyst/Programmer
JNC
Previous
Reply
Map
View

Click here to load this message in the networking platform