Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Lock or freeze the first 2 columns
Message
De
07/04/2005 04:08:22
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Lock or freeze the first 2 columns
Versions des environnements
Visual FoxPro:
VFP 5
Database:
Visual FoxPro
Divers
Thread ID:
01002175
Message ID:
01002175
Vues:
91
hi all,
i try to lock or freeze the first 2 columns at mygrid,via this code under
only the first column is lock,any idea .
thanks
local i
if this.columns(1).ColumnOrder < this.LeftColumn
&& we scroll forward
for i=this.columns(1).ColumnOrder to this.LeftColumn-1
this.columns(1).ColumnOrder = this.columns(1).ColumnOrder + 1
endfor
** next column line
for i=this.columns(2).ColumnOrder to this.LeftColumn-1
this.columns(2).ColumnOrder = this.columns(2).ColumnOrder + 1
endfor
else
&& we scroll backward
for i=this.LeftColumn+1 to this.columns(1).ColumnOrder
this.columns(1).ColumnOrder = this.columns(1).ColumnOrder - 1
endfor
*** next column lock 
for i=this.LeftColumn+1 to this.columns(2).ColumnOrder
this.columns(2).ColumnOrder = this.columns(2).ColumnOrder - 1
endfor

endif
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform