Alpha Video Training
Results 1 to 10 of 10

Thread: Tab Out of Order ?#^%@#

  1. #1
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default Tab Out of Order ?#^%@#

    I created a field expressly for the tab order on a tabbed object to move from one tab to another. On form 1, the tabbed object is Tabbed1. I placed the tab field on each tab and entered this code in the tab field’s OnArrive event:

    tabbed1.tab_set(2)
    sys_send_keys("{tab}")

    It works great, upon arriving on the tab field, immediately go to the first field on the next tab and so on, each time increasing the tab_set(2) by one number, to 3,4,5, etc..

    On form 2, the tabbed object is tabbed3. I placed the tab field (Different table so another tab field) on each tab and entered this code in the tab field’s OnArrive event:

    tabbed3.tab_set(2)
    sys_send_keys("{tab}")

    Upon arriving at the tab field’s OnArrive event, I immediately go to #1 in the tab order, a field on the form, not on the tabbed object. It completely ignores the other tabs and upon arriving at the first field in the tab order, the next record comes into view.

    What am I missing? Why does the cursor go from #12 in the tab order, back to #1 instead of going to #13? I've verified all object names, etc.

    So much for lucky 13, eh?

    Thanks

    kenn

  2. #2
    Mick Magnuson
    Guest

    Default RE: Tab Out of Order ?#^%@#

    Hi Ken
    Instead of using sys_send_keys("{tab}"), which as you recently learned doesn't always go where we want it to, try using activate.

    tabbed3.tab_set(2)
    YourObjectName.activate() 'first stop on that tab

    This will explicitly tell A5 where to go.
    Mick

  3. #3
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default RE: Tab Out of Order ?#^%@#

    Thanks, I forgot about that way of doing it. I like that, Explicity tell it where to go! Will that do me OK at work? Oh my, better not. I'm outnumbered 22-1! (m vs f)


    kenn

  4. #4
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default RE: Tab Out of Order ?#^%@#

    OH, OH Mick, I told it explicitly where to go: address1.activate() and it's doing the same thing. Ditto for the other tabbed pages. Upon entering the tab field, focus goes to the #1 field in the tab order.

    Now then, How should I handle this unruly object? Database compact has no effect.

    Thanks,

    kenn

  5. #5
    Mick Magnuson
    Guest

    Default RE: Tab Out of Order ?#^%@#

    Hi Ken
    Is it switching tabs before going to #1 tab stop? If so we know the OnArrive is working, at least partially. Were the tab switch objects copy and paste? If the object was cloned to other tab pages, that may be why it is acting up on all tabs.

    Nothing on the OnDepart for the tab switch? Something somewhere is telling it to go there...just have to find out what and where.

    Mick

  6. #6
    Mick Magnuson
    Guest

    Default RE: Tab Out of Order ?#^%@#

    Check the OnTabChange event for the Tabbed object. Maybe something ended up in there. (Guessing at this point)

    Mick

  7. #7
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default RE: Tab Out of Order ?#^%@#

    The tab switch objects were copy and paste. So I wrote them all from scratch. Did the first tab and tried it. Worked great; did the 2nd tab and tried it, it also worked great. Then did the rest of the tabs. Went to view mode and checked the tab order. SAME as before. The first tab reverted back to the old problem.

    Went back, deleted the tab field and drag/dropped it again. Rewrote the code reset the tab order. Back to view mode and tested the tab order. Works fine. Some how the tab field on the first tab page gets corrupted during the process of adding the other tab fields. When it's corrupted or isn't working, all the rest follow suit and don't work. When the first tab field works, the rest work. A case of monkey see, monkey do.

    Thanks Mick for you suggestion.
    kenn

  8. #8
    VAR
    Real Name
    John Lemisch
    Join Date
    Apr 2000
    Location
    Florida
    Posts
    673

    Default RE: Tab Out of Order ?#^%@#

    Ken:
    Selwyn gave me an answer to something like this in 1999. this was for a cond object layered form:
    Author:
    selwyn rabins
    i tested this out and it worked for me.

    i have a varialble called "page".
    the conditions for each of the conditional pages on the conditional object
    are:
    var->page =1
    var->page =2
    var->page =3

    on each page of the CO, i have a button that is the last item in the tab
    order on that page. the button has its hidden property checked. it is very
    important that the button is the last object on the page to get focus.

    in the last field on the form, i have this in its ondepart event (this is for the
    object on page1):

    var->page = 2
    :Cond_Obj:Cond1.Refresh()

  9. #9
    "Certified" Alphaholic forskare's Avatar
    Real Name
    Ken Nordin
    Join Date
    Apr 2000
    Location
    Walker, MN
    Posts
    7,545

    Default RE: Tab Out of Order ?#^%@#

    John,

    Thank you for the variable code. I discovered the problem. As soon as the "Hide" check box is checked, it changes things. Uncheck the "Hide" box and it works fine.

    Rather than hide the field, I changed the field's properties to match the tab page, etc.

    Thanks again,

    kenn

  10. #10
    "Certified" Alphaholic
    Real Name
    Wanda Tucker
    Join Date
    May 2001
    Location
    Northern California
    Posts
    1,444

    Default RE: Tab Out of Order ?#^%@#

    Ken - never forget that I'm on your side - in spite of being female :) - Wanda/aka Vindy Vondie Voo

Similar Threads

  1. Tab Order
    By Bill@TrackerSystems.com in forum Alpha Five Version 6
    Replies: 26
    Last Post: 11-19-2004, 05:36 PM
  2. Tab Order Out of Order
    By forskare in forum Alpha Five Version 5
    Replies: 7
    Last Post: 03-17-2003, 05:08 PM
  3. Tab Order
    By Firuz Ulcay in forum Alpha Five Version 4
    Replies: 9
    Last Post: 01-18-2003, 12:31 AM
  4. Tab Order.. is it possible?
    By Jeff Klages in forum Alpha Five Version 4
    Replies: 2
    Last Post: 03-14-2002, 08:38 PM
  5. Set Order
    By Peter.Greulich in forum Alpha Five Version 4
    Replies: 3
    Last Post: 05-24-2001, 11:32 AM

Bookmarks

Posting Permissions

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