Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid: preventing column from moving or resizing
Message
 
 
À
25/03/2005 13:41:25
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00999191
Message ID:
00999194
Vues:
20
I think setting
Grid.LockColumns = 1
should work for the leftmost column.

>I would like to lock the left and right most columns in a grid from being moved or resized. Columns 2 thru N - 1 should remain movable and resizable.
>
>To implement this behavior I've done the following without success:
>
>.ColumnN.Enabled = .F.
>.ColumnN.Movable = .F.
>
>.ColumnN.Move() method: NODEFAULT
>.ColumnN.Resize() method: NODEFAULT
>
>Interestingly enough, when .Movable = .F., the column can't be repositioned, but other columns can be dragged to the left or right of the column, in effect causing the so-called "unmovable" column to move anyway. I want to prevent this.
>
>The only HACK (ugh!) I can think of it to place a transparent shape over (zorder(0)) the left and right most headers to block mouse events on this headers.
>
>Any better ideas? (VFP 8 SP1 or VFP 9)
>
>Malcolm
--sb--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform