Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
2 BUGS/ISSUES: Column Autofit and CellTips
Message
 
 
To
12/07/2005 11:14:54
General information
Forum:
Visual FoxPro
Category:
Object Oriented Programming
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01031703
Message ID:
01032248
Views:
11
Fabio,

>With column's Sparse and Bound to false,
>
>BUG/ISSUE #1: Autofit use Column.Controlsource
>Workaround: disable Autofit

You don't give any expectation of how you think the columns should Autofit.

&& set all columns to max lenght - a miscomment because it's not setting any length
this.SetAll("ControlSource",FIELD(thisform.grid1.ColumnCount),"Column")

When you set the ControlSource for every column to F7 why would you expect VFP to Autofit the columns to anything but the length of F7? Which makes the first 6 columns have white space on the right.

If you allow each Column.ControlSource to be F1 through F7 respectively.
   PROCEDURE grid1.Init
      this.SetAll("Sparse",.F.,"Column")
      this.SetAll("Bound",.F.,"Column")
   ENDPROC
then the AutoFit does set each column width based on the data content of the column.
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Reply
Map
View

Click here to load this message in the networking platform