This isn't a big deal but I would like to set the mousepointer for a grid.
I noticed that it is only settable for the grid and the textboxes in the
grid. I changed these to a regular pointer but it doesn't seem to work the
way I want it. I want a normal pointer as move across the grid but it
always shows the I cursor. Because the grid is there for the user to select
a record they want to edit, it makes no sense to me that this should be an
I. Also I would like to change the cursor for the grid header but that too
does not have a property for the mouse pointer. Is there another simple way
to change the cursor?

--
Altman
VFP8 SP1

Re: Mousepointer on a grid by tom

tom
Thu Dec 02 03:02:36 CST 2004

Hi,

we do the same as follows :

put this in the mousemove of every column Object : this.parent.MousePointer
= 1
put this in the gotfocus of every textbox in the columns and/or make them /
the grid readonly : return .f.

if you like, set the gridhighlight property (new in 8)

HTH, Greetings
tom


"Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
news:euKRgA91EHA.4028@TK2MSFTNGP15.phx.gbl...
> This isn't a big deal but I would like to set the mousepointer for a grid.
> I noticed that it is only settable for the grid and the textboxes in the
> grid. I changed these to a regular pointer but it doesn't seem to work
the
> way I want it. I want a normal pointer as move across the grid but it
> always shows the I cursor. Because the grid is there for the user to
select
> a record they want to edit, it makes no sense to me that this should be an
> I. Also I would like to change the cursor for the grid header but that
too
> does not have a property for the mouse pointer. Is there another simple
way
> to change the cursor?
>
> --
> Altman
> VFP8 SP1
>
>



Re: Mousepointer on a grid by trw7at

trw7at
Thu Dec 02 12:08:34 CST 2004

tom knauf seemed to utter in news:comlni$ju9$01$1@news.t-online.com:

> Hi,
>
> we do the same as follows :
>
> put this in the mousemove of every column Object :
> this.parent.MousePointer = 1
> put this in the gotfocus of every textbox in the columns and/or make
> them / the grid readonly : return .f.
>
> if you like, set the gridhighlight property (new in 8)
>
> HTH, Greetings
> tom
>
>
> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
> news:euKRgA91EHA.4028@TK2MSFTNGP15.phx.gbl...
>> This isn't a big deal but I would like to set the mousepointer for a
>> grid. I noticed that it is only settable for the grid and the
>> textboxes in the grid. I changed these to a regular pointer but it
>> doesn't seem to work the way I want it. I want a normal pointer as
>> move across the grid but it always shows the I cursor. Because the
>> grid is there for the user to select a record they want to edit, it
>> makes no sense to me that this should be an I. Also I would like to
>> change the cursor for the grid header but that too does not have a
>> property for the mouse pointer. Is there another simple way to change
>> the cursor?

A potentially easier way to control the mouse pointer is
to put a transparent shape over the grid's cells. Then
set the shape's MousePointer property to 14 (or whatever
strikes your fancy). If you need to allow the user to
click on cells in the grid, you can pass clicks down to
the grid from the shape. I know several VFP developers
(including myself) who have created this "Grid Cover"
class for times like this when you need more control
over how the grid interface works.

-- TRW
_______________________________________
My e-mail: t r w 7
@ i x . n e t c o m . c o m
_______________________________________

Re: Mousepointer on a grid by Altman

Altman
Thu Dec 02 12:56:38 CST 2004

How can you just pass the click down to the grid? How do you know what
row/column they clicked on?

"Tim Witort" <trw7at@ixdot.netcomdotcom> wrote in message
news:Xns95B3678DC9703timwitortwrotethis@207.217.125.201...
> tom knauf seemed to utter in news:comlni$ju9$01$1@news.t-online.com:
>
>> Hi,
>>
>> we do the same as follows :
>>
>> put this in the mousemove of every column Object :
>> this.parent.MousePointer = 1
>> put this in the gotfocus of every textbox in the columns and/or make
>> them / the grid readonly : return .f.
>>
>> if you like, set the gridhighlight property (new in 8)
>>
>> HTH, Greetings
>> tom
>>
>>
>> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
>> news:euKRgA91EHA.4028@TK2MSFTNGP15.phx.gbl...
>>> This isn't a big deal but I would like to set the mousepointer for a
>>> grid. I noticed that it is only settable for the grid and the
>>> textboxes in the grid. I changed these to a regular pointer but it
>>> doesn't seem to work the way I want it. I want a normal pointer as
>>> move across the grid but it always shows the I cursor. Because the
>>> grid is there for the user to select a record they want to edit, it
>>> makes no sense to me that this should be an I. Also I would like to
>>> change the cursor for the grid header but that too does not have a
>>> property for the mouse pointer. Is there another simple way to change
>>> the cursor?
>
> A potentially easier way to control the mouse pointer is
> to put a transparent shape over the grid's cells. Then
> set the shape's MousePointer property to 14 (or whatever
> strikes your fancy). If you need to allow the user to
> click on cells in the grid, you can pass clicks down to
> the grid from the shape. I know several VFP developers
> (including myself) who have created this "Grid Cover"
> class for times like this when you need more control
> over how the grid interface works.
>
> -- TRW
> _______________________________________
> My e-mail: t r w 7
> @ i x . n e t c o m . c o m
> _______________________________________



Re: Mousepointer on a grid by tom

tom
Fri Dec 03 02:52:03 CST 2004

Hi,

we use the grid to select the record (row) only and have buttons on the form
like "Edit record", "View record" and so on.
If you need to find the column, do not use the return .f. Put some code in
the column or textbox.click to set a form property ("userclickedcolum") ,
you may try .activecell, too

HTH
Tom

"Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
news:e0$coCK2EHA.3708@TK2MSFTNGP14.phx.gbl...
> How can you just pass the click down to the grid? How do you know what
> row/column they clicked on?
>
> "Tim Witort" <trw7at@ixdot.netcomdotcom> wrote in message
> news:Xns95B3678DC9703timwitortwrotethis@207.217.125.201...
> > tom knauf seemed to utter in news:comlni$ju9$01$1@news.t-online.com:
> >
> >> Hi,
> >>
> >> we do the same as follows :
> >>
> >> put this in the mousemove of every column Object :
> >> this.parent.MousePointer = 1
> >> put this in the gotfocus of every textbox in the columns and/or make
> >> them / the grid readonly : return .f.
> >>
> >> if you like, set the gridhighlight property (new in 8)
> >>
> >> HTH, Greetings
> >> tom
> >>
> >>
> >> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
> >> news:euKRgA91EHA.4028@TK2MSFTNGP15.phx.gbl...
> >>> This isn't a big deal but I would like to set the mousepointer for a
> >>> grid. I noticed that it is only settable for the grid and the
> >>> textboxes in the grid. I changed these to a regular pointer but it
> >>> doesn't seem to work the way I want it. I want a normal pointer as
> >>> move across the grid but it always shows the I cursor. Because the
> >>> grid is there for the user to select a record they want to edit, it
> >>> makes no sense to me that this should be an I. Also I would like to
> >>> change the cursor for the grid header but that too does not have a
> >>> property for the mouse pointer. Is there another simple way to change
> >>> the cursor?
> >
> > A potentially easier way to control the mouse pointer is
> > to put a transparent shape over the grid's cells. Then
> > set the shape's MousePointer property to 14 (or whatever
> > strikes your fancy). If you need to allow the user to
> > click on cells in the grid, you can pass clicks down to
> > the grid from the shape. I know several VFP developers
> > (including myself) who have created this "Grid Cover"
> > class for times like this when you need more control
> > over how the grid interface works.
> >
> > -- TRW
> > _______________________________________
> > My e-mail: t r w 7
> > @ i x . n e t c o m . c o m
> > _______________________________________
>
>



Re: Mousepointer on a grid by trw7at

trw7at
Fri Dec 03 15:33:16 CST 2004

You use the GridHitTest method to determine if the mouse
was clicked over the grid and the exact row and column of
the click. Then you use ActivateCell and SetFocus to give
focus to the clicked cell. Of course you can use additional
logic as you desire. You have complete control over how
the mouse interracts with the grid's cells.

If you want a copy of my grid cover class, email me and
I'll send it to you.

-- TRW

Altman seemed to utter in news:e0$coCK2EHA.3708@TK2MSFTNGP14.phx.gbl:

> How can you just pass the click down to the grid? How do you know what
> row/column they clicked on?
>
> "Tim Witort" <trw7at@ixdot.netcomdotcom> wrote in message
> news:Xns95B3678DC9703timwitortwrotethis@207.217.125.201...
>> tom knauf seemed to utter in news:comlni$ju9$01$1@news.t-online.com:
>>
>>> Hi,
>>>
>>> we do the same as follows :
>>>
>>> put this in the mousemove of every column Object :
>>> this.parent.MousePointer = 1
>>> put this in the gotfocus of every textbox in the columns and/or make
>>> them / the grid readonly : return .f.
>>>
>>> if you like, set the gridhighlight property (new in 8)
>>>
>>> HTH, Greetings
>>> tom
>>>
>>>
>>> "Altman" <NotGiven@SickOfSpam.com> schrieb im Newsbeitrag
>>> news:euKRgA91EHA.4028@TK2MSFTNGP15.phx.gbl...
>>>> This isn't a big deal but I would like to set the mousepointer for a
>>>> grid. I noticed that it is only settable for the grid and the
>>>> textboxes in the grid. I changed these to a regular pointer but it
>>>> doesn't seem to work the way I want it. I want a normal pointer as
>>>> move across the grid but it always shows the I cursor. Because the
>>>> grid is there for the user to select a record they want to edit, it
>>>> makes no sense to me that this should be an I. Also I would like to
>>>> change the cursor for the grid header but that too does not have a
>>>> property for the mouse pointer. Is there another simple way to change
>>>> the cursor?
>>
>> A potentially easier way to control the mouse pointer is
>> to put a transparent shape over the grid's cells. Then
>> set the shape's MousePointer property to 14 (or whatever
>> strikes your fancy). If you need to allow the user to
>> click on cells in the grid, you can pass clicks down to
>> the grid from the shape. I know several VFP developers
>> (including myself) who have created this "Grid Cover"
>> class for times like this when you need more control
>> over how the grid interface works.
>>
>> -- TRW
>> _______________________________________
>> My e-mail: t r w 7
>> @ i x . n e t c o m . c o m
>> _______________________________________
>
>



--
_______________________________________
My e-mail: t r w 7
@ i x . n e t c o m . c o m
_______________________________________

RE: Mousepointer on a grid by Chrispy

Chrispy
Fri Dec 03 20:37:02 CST 2004

I use the technique of turning off the AllowCellSelection and making the grid
read only. That way the whole row gets highlighted. Then you get the default
mouse arrow across the entire row.


"Altman" wrote:

> This isn't a big deal but I would like to set the mousepointer for a grid.
> I noticed that it is only settable for the grid and the textboxes in the
> grid. I changed these to a regular pointer but it doesn't seem to work the
> way I want it. I want a normal pointer as move across the grid but it
> always shows the I cursor. Because the grid is there for the user to select
> a record they want to edit, it makes no sense to me that this should be an
> I. Also I would like to change the cursor for the grid header but that too
> does not have a property for the mouse pointer. Is there another simple way
> to change the cursor?
>
> --
> Altman
> VFP8 SP1
>
>
>