Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
2 BUGS/ISSUES: Column Autofit and CellTips
Message
 
 
À
12/07/2005 11:14:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Programmation Orientée Object
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01031703
Message ID:
01032248
Vues:
12
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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform