Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Checkbox in Grid is ReadOnly though grid is not
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Checkbox in Grid is ReadOnly though grid is not
Divers
Thread ID:
00229996
Message ID:
00229996
Vues:
59
Hey all,

Saw a lot of other threads about this, but my behavior seems a tad different. First off, I am using VFP 6.0 SP3, so the Checkbox has a readonly property and all.

I made a simple grid with 3 columns, the last two having checkboxes as the CurrentControl. The last two columns are bound to logical fields in a local view, and the grid's RecordSource is that local view *RecordSourceType being "Alias")

When I try to click on the checkboxes, the status bar tells me the control is read-only. Setting breaks in the debugger, I see that the control goes from ReadOnly = .F. to ReadOnly =.T. right when the checkbox gets focus (or when the cell gets focus anyway) and no code comes up at the break...it must be some internal operation.

I have added stuff like THIS.ReadOnly = .F. in the GotFocus and When, but that first click still doesn't get accepted. That means the user has to click once to get focus to the cell, then click again to make the checkbox toggle. This is unacceptable.

What is wrong with my checkboxes? Why to they toggle to ReadOnly upon gaining focus? Is there a workaround? An event I can intercept to make this smoother? Any and all help would be _greatly_ appreciated...

Thanks,
Joe Kaufman
jkaufman@encompas.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform