Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Simulate Browse Freeze in a grid
Message
From
30/01/2008 20:42:32
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01287373
Message ID:
01287377
Views:
12
>Is there a way to simulate the Browse Freeze fieldname functionality in a grid? The grid has 4 columns showing data from 2 tables but I want to restrict the user's actions to the final column.

I did this in the command window. nRow is 4th field (of 5) in my table.
BROWSE FREEZE nrow NAME o3
Then I looked at the changed properties for the grid and its columns, using
AMEMBERS(aa2, o3.column2,3,"C")
AMEMBERS(aa4, o3.column4,3,"C")
AMEMBERS(aag, o3,3,"C")
In the debugger, the only relevant thing I saw was that .ReadOnly was set for each column - but set to .f., i.e. the default. Also all the columns are enabled and are not readonly. The only weird thing I found about this browse cum grid object is that each text1 has .left=4000 and .top=4000, in all columns. And yet the cursor won't leave the nRow column, it's there as a permanent fix.

IOW, there's something that browse window does, using a regular grid, that I don't see how to do programmatically.

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform