Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Button in Grid ForeColor change
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Button in Grid ForeColor change
Divers
Thread ID:
01659197
Message ID:
01659197
Vues:
69
Hi,

I have a grid where a column control is a button. The cursor to which this grid is bound has a field that has a name of a file. For example, field name FILE_NAME.
FILE_NAME
"abc.png"
"cbs.png"
"nbc.png"
and so on

I want the button foreground color to be different, depending on if a file name specified in the field FILE_NAME exists or not. For example, red for the records that "point" to a file that does not exist.

How can this be done? In which method of the button control I need to check if a file exists or not?

TIA
"The creative process is nothing but a series of crises." Isaac Bashevis Singer
"My experience is that as soon as people are old enough to know better, they don't know anything at all." Oscar Wilde
"If a nation values anything more than freedom, it will lose its freedom; and the irony of it is that if it is comfort or money that it values more, it will lose that too." W.Somerset Maugham
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform