Re: can i find the record number over which my mouse is positioned

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



Pk,

if you are showing the data in a grid, you might take a look at the
AMouseObj()-function.

--
Cheers
Carsten
_______________________________

"Pk" <pk@xxxxxx> schrieb im Newsbeitrag
news:#W$rteTcFHA.3712@xxxxxxxxxxxxxxxxxxxxxxx
> Ok I do have an ID field.
> But still conder the following,
> - 3 records,
> - each record has ID values of , A, B and B
> - Currently record pointer is on record where ID = A
> - When i place my mouse pointer over the 3 record where ID = C
> i want to do something,
> but how do i know that the mouse pointer is over the record where ID = C.
>
> "BlackSabbath" <no.spam@xxxxxxx> wrote in message
> news:opsscz4tv9973osb@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> > Le Tue, 14 Jun 2005 16:39:19 +1000, Pk <pk@xxxxxx> a écrit:
> >
> > > Is it possible to get the record number over which my mouse pointer is
> > > located?
> > > Using VFP8.0
> > >
> > >
> > What is the interest of the record number ???
> > It would be better interesting to speak about a specific id field !
> > Do U have one ?
> > assuming the name of this field = ID
> >
> > In a timer interval event
> > oUnderMouse = SYS(1270)
> >
> > IF TYPE("oUnderMouse") = "O" ;
> > AND TYPE("oUnderMouse.parent") = "O" ;
> > AND oSousMouse.parent.parent.class = "Grid")
> > AND oSousMouse.class = "textBox"
> > oGrid = oSousMouse.parent.parent
> > cTable = oGrid.RecordSource && MyTable
> > FOR n = 1 TO oGrid.ColumnCount
> > IF oGrid.Column(n).ControlSource = cTable + ".ID"
> > DO something
> > ENDIF
> > NEXT
> > ENDIF
>
>


.



Relevant Pages

  • [git patches] net driver updates for .27
    ... Remove adapter struct from these function call parameters ... pointer to the HW structure ... * Acquire the necessary semaphores for exclussive access to the EEPROM. ...
    (Linux-Kernel)
  • Re: Child grid woes
    ... pointer), but only with the wait statements running. ... in the grid refresh I've issued a NODEFAULT. ... insert into kid values ...
    (microsoft.public.fox.programmer.exchange)
  • [PATCH 01/17] kernel: add bl_list
    ... new file mode 100644 ... * pointer must be set. ... * holding appropriate locks) to avoid racing with another ...
    (Linux-Kernel)
  • [PATCH 42/46] kernel: add bl_list
    ... new file mode 100644 ... * pointer must be set. ... * holding appropriate locks) to avoid racing with another ...
    (Linux-Kernel)
  • [patch 02/35] kernel: add bl_list
    ... This will be subsequently used to implement per-bucket bit spinlock ... * pointer must be set. ... * holding appropriate locks) to avoid racing with another ...
    (Linux-Kernel)