DO (_SAMPLES + "Solution\Solution.app")

and then Controls, Grid, Dynamic...

You can also search FoxPro Help, using "Dynamically" as the search term.

Dynamic* properties are pretty difficult to get right. The properties
are strings evaluated on the fly as if they were macro-expanded.





---------- Forwarded message ----------
From: Mike Copeland <[email protected]>
Date: Mon, Sep 14, 2015 at 5:59 PM
Subject: Re: Grid cell colors
To: [email protected]


One technique to accomplish what I think I want is where a transparent
overlay is used over the grid. Anyone ever do that? How does the click
for the overlay get transferred to the grid?

Other than clicking on the row, I have no interest in interacting with
the grid at all...it's just a display.

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/CACW6n4vtJru7LHfmeqbbabdHr+e9VSTpDvVEjzCV_KuhX=s...@mail.gmail.com
** 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.

Reply via email to