Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Interactively Changing Object Properties in Grid
Message
De
02/02/2004 08:59:27
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00872669
Message ID:
00872905
Vues:
16
Hey Sergey,

I must still be missing something. I have
=IIF(This.Text1.Value,.T.,.F.)
in the DynamicFontBold of the column, but it does not change. I'm also using Nick's Grid Highlighter class. I wonder if it doesn't allow this functionality to occur?

Renoir

>Hi Renoir,
>
>If you want to change appearance of a single cell or specific rows/columns based on conditions, you should use Dynamic* properties of a column.
>
>
>>I thought the following code in the ProgrammaticChange method would change the font for a textbox in my grid, but when its value is changed in code the font does not change. Trying to show the font differently for this cell depending on whether the value is TRUE or FALSE. Thanks!
>>
>>Regards, Renoir
>>
>>
>>
>>
>>THISFORM.Lockscreen = .T.
>>
>>WITH THIS
>>	IF .Value = .T.
>>		.ForeColor = RGB(255,0,0)
>>		.FontBold = .T.
>>	ELSE
>>		.ForeColor = RGB(0,0,0)
>>		.FontBold = .F.
>>	ENDIF
>>ENDWITH
>>
>>THISFORM.Lockscreen = .F.
>>
>>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform