Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CGridlist
Message
De
09/05/1999 00:28:22
 
 
À
08/05/1999 21:34:58
Information générale
Forum:
Visual FoxPro
Catégorie:
The Mere Mortals Framework
Titre:
Divers
Thread ID:
00216411
Message ID:
00216497
Vues:
30
>>*---------------------------------------
>>*--- Set the column controls' BackColor,
>>*--- ForeColor and SelectedBackColor
>>*---------------------------------------
>> FOR lnColumn = 1 TO THIS.COLUMNCOUNT
>> loControl = EVAL("This.columns[lncolumn]." + THIS.COLUMNS[lnColumn].CURRENTCONTROL)
>> loControl.BACKCOLOR = THIS.nSelectedBackColor
>> loControl.FORECOLOR = THIS.nSelectedForeColor
>> IF THIS.HasSelectedBackColor(loControl)
>> loControl.SELECTEDBACKCOLOR = THIS.nSelectedBackColor
>> ENDIF
>> ENDFOR
>
>Wouldn't it be easier to use pemstatus:
>
>
>IF PEMSTATUS( loControl, 'SelectedBackColor', 5)
>   loControl.SELECTEDBACKCOLOR = THIS.nSelectedBackColor
>ENDIF
>
>
>BOb

It sure would! Thanks BOb.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform