Okay...nevermind.
I got it to work by using a transparent shape overlay, getting the X, Y
coords out of the MouseDown event, and then with the grid's gridhitest
determining the row. Everything else was simple.
Thanks!
Mike Copeland
Mike Copeland wrote:
I'm trying to use a VFP9sp2 grid to display a simple representation of
trucks being used for a day.
Horizontal rows represent trucks, columns indicate time in 1 hour
increments from 8am to 4pm.
If a truck is reserved, I want the cell for that row+column to be
greyed (any color, doesn't matter).
If a truck is open, the row+column should be white.
So, all is well, and working as desired. Here's a snapshot of the grid
in use.
ggisoft.com/snap/cap1.GIF <http://ggisoft.com/snap/cap1.GIF>
Notice the row in blue...that's my problem.
I can get the background of the selected row to be any color. My
preference is white...I changed it to blue for this illustration.
The problem is that when a grey row is selected, it changes to white,
or blue in this example. Like this...
ggisoft.com/snap/cap2.gif <http://ggisoft.com/snap/cap2.gif>
What I want is for the selected row to stay whatever it is when
unselected. White, or grey or pink or whatever.
I've tried various combinations of the dynamicbackcolor property of
the grid...which is how I have gotten this far. I've also tried adding
a property to the form to track the currently selected recno() of the
underlying table.
The grid.highlight= t/f doesn't make any difference.
The grid.highlightrow = t/f doesn't make any difference.
The grid.highlightbackcolor = 255,255,255 sets the background to
white, which is what I want except for the "reserved" rows which
should be grey.
I've tried the different grid.highlightstyle settings, and have left
it on 2 for now.
What am I not grasping?
Thanks for all advice.
Mike Copeland
[excessive quoting removed by server]
_______________________________________________
Post Messages to: [email protected]
Subscription Maintenance: http://mail.leafe.com/mailman/listinfo/profox
OT-free version of this list: http://mail.leafe.com/mailman/listinfo/profoxtech
Searchable Archive: http://leafe.com/archives/search/profox
This message:
http://leafe.com/archives/byMID/profox/[email protected]
** All postings, unless explicitly stated otherwise, are the opinions of the
author, and do not constitute legal or medical advice. This statement is added
to the messages for those lawyers who are too stupid to see the obvious.