Advanced document navigation

  • Hello,

    I need implement a navigation system using TAB and Shit+TAB keys.
    The navigable objects are: EditFields and generic TWPObjects (Edits, Checks and Combos at least).

    The navigation trough EditFields is automatic, I know, but I can't use that because don't give focus to TWPObjects components.

    The main problem is that I need know wich is the nearest object (ahead and back) for set the focus. I don't know the internal structures and functions for get the list of TWPObjects and EditFields and your positions.

    Thanks for all

    • Offizieller Beitrag

    The procedure in WP.TextObjects.

    function GotoNext: Boolean;
    function GotoPrior: Boolean;

    move the cursor 'on' the next object.

    You can use CPAttr^.tag to read out the tag.

    You can use CPChar^, CPAttr to either find an insertpoint or object and move there.

    Julian