Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with readonly textbox in a grid.
Message
 
 
To
15/11/2000 20:10:38
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00442422
Message ID:
00442471
Views:
9
>I have a column with a standard readonly textbox to display the vendor name, and also another textbox custom class in that same column (not readonly) that inputs and validates the vendor number. Currentcontrol is set to TextBox2.
>
>The sparse setting uses the TextBox1 to display the name in all but the current cell, and the current cell uses my special textbutton class to get and validate the vendor number.
>
>When I add a new row with the cmdNew.Click() method, I do append blank, and then setfocus to grid.column1. At that point TextBox2 gets focus, but when I try to type it is readonly (a message saying "Control is read only" pops up in the lower left hand corner of the screen.
>
>Column.readonly=.f.
>column.text1.readonly=.t.
>column.text2.readonly=.f.

What is the currentcontrol in that moment? Check it by Wait Window in Text1.SetFocus() and Text2.SetFocus(). You may switch them somehow.

Also try to create another thread (if you still need to) in another section (Form and Form Designer). This thread doesn't belong to Chatter... :)
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