Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with readonly textbox in a grid.
Message
 
 
À
15/11/2000 20:10:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00442422
Message ID:
00442471
Vues:
17
>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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform