Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why do textboxes in grid columns do weird back color thi
Message
From
29/05/2009 01:22:15
 
 
To
28/05/2009 20:27:22
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
01402534
Message ID:
01402590
Views:
78
>>FIXED IT!!!!
>>
>>The trick is to use Column.DynamicInputMask=["@R ###,###,###.##"] and then you can turn off the Column.Sparse
>
>The .Sparse is one of the best misnomers in all of VFP - it should be set the opposite and called .DynamicAppliesInAllRows, i.e. when .sparse=.t., the dynamic* properties apply to the current row only, for .f. they apply to all rows.
>
>This isn't explained the best way in help, and it doesn't even mention "if .t., the default textbox is shown in all rows but the current". I don't even remember how many times it bit me, and after a while I even gave up trying to understand what it actually meant. It became one of the things to try before getting the grid to work as desired.

If you are right, then I'm still confused because... In this case, I have Column.Sparse=.T. but yet the Column.DynamicInputMask="@R ###,###,###.##" setting *IS* applying to all rows.

It has always be my understanding that only the "DynamicCurrentControl" and "CurrentControl" behavior was affected by Sparse property, but not the the other Dynamic* properties, as you stated. At least, that is the result I am getting here. And, in this case, the only control in the column is the standard textbox that is included in each column, so you would think the whole issue of Sparse should be moot, since there are not two controls from which to choose.

The Help mentions Sparse in DynamicCurrentControl and CurrentControl, but it is not mentioned in DynamicInputMask.

Anyway, I've always thought about it like this: "sparse" means 'not too much', or 'not very often', so, that jives with only using the specified CurrentControl on the current row when Sparse=.T., and the regular textbox on all the other rows. But again, only with respect to CurrentControl, not all the the Dynamic* properties.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform