Paradox Community

Items in pnews.paradox-programming

Subject:Re: Trapping TF record navigation
Date:Tue, 15 Oct 2019 11:49:12 +0200
From:modridirkac <jure.zorko@gmail.com>
Newsgroups:pnews.paradox-programming
> I need to trap when the user navigates from record to record within a  
> tableframe.

Why not use events on "record", not "tableframe"?

> Do I need to trap for each way (arrow keys up/down,scroll up/down,  
> pageup key, page down key, user clickson a record (not sure how to trap  
> for that one).
You just need to trap for "arrive to record".

Put this code on "record". That is object inside of TableFrame:
method action(var eventInfo ActionEvent)
    if eventInfo.id() = DataArriveRecord then
       "doSomething"
    endIf
endMethod

Jure


Copyright © 2004 thedbcommunity.com