Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Help with readonly txtbox in a grid...
Message
From
15/11/2000 23:08:21
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Help with readonly txtbox in a grid...
Miscellaneous
Thread ID:
00442475
Message ID:
00442475
Views:
49
I was told to re-post this messeage here, instead of Chatter. Excuse the re-post.

Now then...

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.
Next
Reply
Map
View

Click here to load this message in the networking platform