Results 1 to 2 of 2

Thread: TAB Key - sequence in Dialog Screen

  1. #1
    Join Date
    Nov 2009
    Location
    Idaho
    Posts
    5

    Default TAB Key - sequence in Dialog Screen

    WE would like to change the order that TAB key flows from one data field to the next desired data field. We have not been able to find any instruction to address the order of data fields accessed by the TAB key.

    We have added some new data definitions, and have added the data fields to the appropriate Customer Detail or Reservation Detail Dialog screens. We have also removed / hidden some other unwanted data fields.

    We would now like to change the order in which TAB key processes through the various data fields.

    Has anyone successfully altered the TAB sequence?

    CGM can you provider direcetions to alter the TAB sequenceing or are with stuck with the default order? After adding new data fields to a Dialog the TAB sequence goes through all of the default fields and contro buttons before you access the new data fields.

    Thanks
    Bob

  2. #2

    Default

    There isn't a specific tab-order change function, but it is possible to do in some situations.

    Depending on the details it can be tricky, but usually you can do it with an "Action on get focus" element for the receiving field. Set it up so that if the last control to have focus was the "normal" previous control, then it sets focus to the one you want to have focus.

    For instance:

    Lets say the control ID's for the normal order are 1 followed by 2, and you want to change it so it goes from 1 to 5 instead of 1 to 2.

    Add an "Action on get focus" element for the control 2 (which normally receives focus after 1), and set the action to:

    iifq(ThisDlgCtrlLastFocus() = 1,'DlgSetFocusCtrl(5)','0')

    Repeat this for each control that needs a focus change.
    Stan Spielbusch
    [Forum Administrator]

Similar Threads

  1. Login Dialog after Auto Logout
    By Murphy's Camping in forum Technical Support
    Replies: 1
    Last Post: 05-29-2011, 10:09 AM
  2. Customizing Customer Details Dialog
    By Sun Meadow in forum Technical Support
    Replies: 2
    Last Post: 03-05-2010, 09:25 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •