Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid seems to loose track of what row it´s on (VFP6 /SP3
Message
De
03/07/2000 08:19:32
 
 
À
03/07/2000 03:50:19
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00387036
Message ID:
00387705
Vues:
14
>Quite possibly, but how?
>
>Peter

Hi Peter,

As a simple test I created a table with a logical field and an integer field to bind to the check box and the spinner in the grid. I then created a form, placed a grid on the form, placed a check box in column 1 and a spinner in column 2 making the check box the CurrentControl of column 1 and the spinner the CurrentControl of column 2. I set the Sparse property of column 1 to .F. so all the check boxes would show.

In the grid's AfterRowColChange event I placed the following code:
IF MyTable.check    && "check" is the logical field name
    THIS.COLUMN2.SPINNER1.ENABLED = .T.
ELSE
    THIS.COLUMN2.SPINNER1.ENABLED = .F.
ENDIF
In the check box's Click event I placed the following code:
IF THIS.VALUE
    THIS.PARENT.PARENT.COLUMN2.SPINNER1.ENABLED = .T.
ELSE
    THIS.PARENT.PARENT.COLUMN2.SPINNER1.ENABLED = .F.
ENDIF
I believe this gave the basic behavior you are looking for. Now this was just a quick example. You would probably need to experiment and adjust settings to get the details of how you want it to work ironed out.

Bill
William A. Caton III
Software Engineer
MAXIMUS
Atlanta, Ga.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform