Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to use a GRID for display and select only - no editing?
Message
From
24/04/2000 23:25:38
Peter Brama
West Pointe Enterprises
Detroit, Michigan, United States
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
How to use a GRID for display and select only - no editing?
Miscellaneous
Thread ID:
00363004
Message ID:
00363004
Views:
62
I want to use a grid as a nicely columnized (and headered) list box basically. I need a couple
"features" to get this to work properly....

a) When the grid first appears, I need the RECORDMARK to be marked for the "current" record
b) I would like the entire ROW to be highlighted - different background color, for the "current" record
c) When a user clicks ANYWHERE on a row (in any column), I want that row to become the
current record (moving the RECORDMARK and highlite (b above) correctly BUT I don't want
a cursor or any editing capability in that row or column.

For the record, if a user wants to ADD, DELETE or EDIT the "current" row, they will go to a
seperate pageframe tab where that information is all spelled out.

The only thing I have "crudely" been able to get to work is to avoid the actually editing in a row
by modifying the CLICK method for each column. In it, I have changed the SETFOCUS back to
the pageframe tab headings themself. It works but it flashes, and is messy and actually only works
on the click. I need to use the GOTFOCUS or something else to catch arrow and tab controls as
well as mouse movements.

Is there an easy way to do all this. Am I overlooking something. Or is this just wishfull thinking?

Thanks ahead of time
Peter Brama
West Pointe Enterprises

VFP is getting easier but STILL alot to learn!!
Next
Reply
Map
View

Click here to load this message in the networking platform