Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Grid: preventing column from moving or resizing
Message
De
25/03/2005 13:41:25
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Grid: preventing column from moving or resizing
Divers
Thread ID:
00999191
Message ID:
00999191
Vues:
63
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
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform