General information
Category:
Forms & Form designer
Yes, I just got reminded of the DEFINITION of dynamic. That helps! I will try your suggestions though, thanks!
>That's understandable! I think what you are finding is that enable value is getting evaluated ONCE when the control is initialized. So, if it needs to be ~dynamic~ then you can set
>
>this.enabled = table.logical
>
>in the refresh method. Or you could even return table.logical in the when method.
>
>>Sorry, that was a bit hasty. The first example will change the color in a specific cell in a column if the logical field for the row is true.
>>
>>However, this logic does not work with the enabled property. I have a grid where one of the columns needs to have the appropriate cells enabled or disabled according to the logical value in the table.
>>Hope that is better.
>>
>>>What do you mean?
>>>
>>>>In a grid's init, why does this work:
>>>>
>>>>THIS.Column2.DynamicForeColor="IIF(table.logical,RGB(255,0,0),RGB(0,0,0))"
>>>>(which is taken straight from the developer's guide)
>>>>
>>>>and this doesn't:
>>>>
>>>>THIS.Column2.Enabled=IIF(table.logical,.T.,.F.)
>>>>
>>>>Kevin Payne
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only