If the grid is in focus, the current record will always be high-lighted
as I moved the record pointer programmatically (SKIP, GO, SEEK, ...).

Is there a way to keep the high-lighting to follow the record pointer
without grid.setfocus() first?

Re: high-lighting current record in grid by Durby

Durby
Wed Jun 22 23:30:48 CDT 2005

VFP9.0 have new properties called "HighlighStyle", set it to 2.
after you move your record pointer, call grid.refresh()

hope it help.


"man-wai chang" <toylet.toylet@gmail.com> wrote in message
news:uEfj5N6dFHA.2124@TK2MSFTNGP14.phx.gbl...
> If the grid is in focus, the current record will always be high-lighted as
> I moved the record pointer programmatically (SKIP, GO, SEEK, ...).
>
> Is there a way to keep the high-lighting to follow the record pointer
> without grid.setfocus() first?



Re: high-lighting current record in grid by man-wai

man-wai
Thu Jun 23 05:58:50 CDT 2005

Durby vend wrote:
> VFP9.0 have new properties called "HighlighStyle", set it to 2.
> after you move your record pointer, call grid.refresh()
>>Is there a way to keep the high-lighting to follow the record pointer
>>without grid.setfocus() first?

so it's not possible in older versions?

Re: high-lighting current record in grid by christophe

christophe
Thu Jun 23 06:29:42 CDT 2005

Man-Wai Chang,

At least also vfp8

regards
christophe


--
\|||/
(o o)
----ooO-(_)-Ooo-------------


"man-wai chang" <toylet.toylet@gmail.com> schreef in bericht
news:%23ploKK%23dFHA.796@TK2MSFTNGP09.phx.gbl...
> Durby vend wrote:
>> VFP9.0 have new properties called "HighlighStyle", set it to 2.
>> after you move your record pointer, call grid.refresh()
>>>Is there a way to keep the high-lighting to follow the record pointer
>>>without grid.setfocus() first?
>
> so it's not possible in older versions?



Re: high-lighting current record in grid by man-wai

man-wai
Thu Jun 23 06:58:19 CDT 2005

> At least also vfp8

This feature should have been in VFP6...


--
.~. Might, Courage, Vision. http://www.linux-sxs.org
/ v \
/( _ )\ Linux 2.4.30
^ ^ 7:58pm up 41 days 8:07 load average: 0.08 0.09 0.16

Re: high-lighting current record in grid by Durby

Durby
Thu Jun 23 22:31:27 CDT 2005

you can also archive this effect in VFP6 if you really need this feature in
your program.

create an addtional field to hold an logical field for the grid's
recordsource.
and set dynamicbackcolor condition base on this field's condition.

each time when you seek or locate, mark that new field with .t.

hope it help.



"man-wai chang" <toylet.toylet@gmail.com> wrote in message
news:e3aQar%23dFHA.3932@TK2MSFTNGP12.phx.gbl...
>> At least also vfp8
>
> This feature should have been in VFP6...
>
>
> --
> .~. Might, Courage, Vision. http://www.linux-sxs.org
> / v \
> /( _ )\ Linux 2.4.30
> ^ ^ 7:58pm up 41 days 8:07 load average: 0.08 0.09 0.16



Re: high-lighting current record in grid by Jack

Jack
Fri Jun 24 12:16:15 CDT 2005

On Thu, 23 Jun 2005 19:58:19 +0800, man-wai chang
<toylet.toylet@gmail.com> wrote:

>> At least also vfp8
>
>This feature should have been in VFP6...

Create a property somewhere, maybe Thisform.nCurGridRecno.

In the grid's AfterRowColChange event:
Thisform.nCurGridRecno = RECNO()

In the grid's Init:

This.SetAll("DynamicBackColor", "IIF(Thisform.nCurGridRecno ==
RECNO(), RGB(...highightcolor...),This.BackColor)")

If you need to change the foreground color, set DynamicForeColor in a
similar way.

You will probably also have to put code in the GotFocus methods of the
objects in the columns to set the object's ForeColor and BackColor,
otherwise cells won't look right when you click in them.