Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Help with readonly textbox in a grid.
Message
 
 
À
15/11/2000 23:06:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00442422
Message ID:
00442479
Vues:
15
>I do not execute any code to change the currentcontrol, I set it at design time to the TextBox2, and rely on the grid to use it on the active cell, just like the grid is supposeed to.
>
>Also, I can tell it is the Textbox2, because I turned the borderstyle off on Textbox1, and ON for TextBox2. That way I can see that TextBox is indeed the one being used, but it still behaves as readonly.

Hi Matt,

I'm not sure, it's the best way for testing, but then I have the mystery like this, I add wait windows with some messages, trying to determine, waht's going on. For instance, you may try wait window in GotFocus() event and in KeyPress(). Also there could be code in textbox.when expression, which returns .f. and prevents from editting. Or you set up this column to be readonly somehow.
I would try explicitly set readonly=.f. in text2.gotfocus(), e.g.
this.parent.readonly=.f.
this.parent.parent.readonly=.f.

just to be sure.

Of course, these are just my methods of 'struggle'. You may invent your own.
If it's not broken, fix it until it is.


My Blog
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform