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
> > _______________________________________
>
>