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