Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic checkbox caption in grid?
Message
De
31/05/2002 09:12:33
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00655970
Message ID:
00663385
Vues:
29
>I thought that should work too but it didn't. As I explained to David tonight, it appears that the field's data value isn't being evaluated at the proper level. It's as if the entire column is assigned the display value of the most recently accessed row. That's why I think the solution, if there is one, will use a dynamic property which forces re-evaluation at the "cell" level. Caroline's suggestion to use DynamicCurrentControl in the column seems like it should work. I haven't had time to check it out yet.

I can't understand what the problem is. I have an app with a grid containing 2 columns of graphical checkboxes. I have no special code in the checkboxes for handling data - no code in the checkboxes at all, for that matter. I simply have a 'normal' picture (no picture at all), and a down picture (a checkmark).

In the grid's init, I add the columns, and set their properties, including controlsource, but excepting the bound and sparse properties. Then I remove the textboxes from those columns, and add the checkboxes. I set the properties of the checkboxes (ie - style = 1, caption = "", visible = .T., downpicture, etc), and designate it as currentcontrol.

Next I add a second checkbox (uncheckable). I dynamically change the currentcontrol based on a flag that tells me whether the column in that row is editable. The table has a fixed number of rows and a couple contain calculated values.

The last thing I do in the grid init is to set the columns' bounds to .T. and the sparses to .F.

This all works the way I want it to. Does any of this jump up as somthing very different from what you are doing?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform