Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sparse, grid alignment issue
Message
 
To
02/06/2006 05:42:40
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Miscellaneous
Thread ID:
01124412
Message ID:
01126757
Views:
10
>>If I set columns in a grid to sparse=.f. (textbox controls in each column), the alignment shifts upwards on some columns. To better explain it...the row will not uniformly align on the same line/row. The columns with characters will be skewed higher than the columns with integers/numerics.
>>Is there a way to fix that behavior? Is that a bug?
>>(I like the grid highlighting look with sparse set to false, so I'd like to fix it without change sparse back to .t.)
>>Allen
>
>This is a VFP's bug.
>
>Workaround:
>
>
>* force VFP to execute the Textbox.Alignment = 3 routine:
>* Mark ( bold ) TextBox property Alignment = 3 ( Automatic )
>
>* on textbox.Init set
>this.Alignment = 0 && or 1,2 . the wished value
>
Good solution. Thanks.
Previous
Reply
Map
View

Click here to load this message in the networking platform