Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dynamic forecolor for CmdButton in grid column
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00885644
Message ID:
00885679
Vues:
14
Thanks. that did it. i thought that it would set the textbox forecolor and not affect the cmdbutton... but it worked.


>I have a "notes" command button in a column of a grid. I want to set the forecolor for the command button to blue if the note field is NOT empty (for each particular row), and black if it is empty. How is this done?
>
>In Init Method of the form:
>
>thisform.Grid1.Column1.DynamycForeColor = "IIF(EMPTY(MyTable.NoteField),RGB(0,0,0),RGB(0,0,255))"
>
>
>Column1 is the column tha has the command button, set Sparce to .f.
>
>This work in VFP 8.0 ( never tesetd in earlier).
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform