Board index » delphi » TTable: how to trap cursor movement

TTable: how to trap cursor movement

Hi,

Is it possible to trap cursor movement in a TTable without the use of the
DBNavigator's OnClick event? Something like an OnNextRecord / OnPrevRecord
event.. anyone?

Best regards,
  Sebastian

 

Re:TTable: how to trap cursor movement


Quote
"Sebastian Bargmann" <seb...@{*word*104}net.dk> wrote:
> Hi,

> Is it possible to trap cursor movement in a TTable without the use of the
> DBNavigator's OnClick event? Something like an OnNextRecord / OnPrevRecord
> event.. anyone?

OnNext.. and OnPrev... no. But you can trap the cursor moving to another record
with the OnDataChange event of a TDataSource.

Jasper

Re:TTable: how to trap cursor movement


This is a multi-part message in MIME format.

--------------542330E72F2C
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Quote
Sebastian Bargmann wrote:

> Hi,

> Is it possible to trap cursor movement in a TTable without the use of the
> DBNavigator's OnClick event? Something like an OnNextRecord / OnPrevRecord
> event.. anyone?

> Best regards,
>   Sebastian

Try this component !
/ Anders :)

--------------542330E72F2C
Content-Type: application/x-zip; name="Navbtn.zip"
Content-Transfer-Encoding: base64
Content-Disposition: inline; filename="Navbtn.zip"

<encoded_portion_removed>
--------------542330E72F2C--

Re:TTable: how to trap cursor movement


Sebastian ,
  You might refer to cursor changes in a grid - anyway try use the
    OnDataChange event of the TDataSource component , as far as I
    remember when you move to a different record ( using keyboard )
    this event is fired.

Best regards,
  Eyal.

Other Threads