+ Reply to Thread
Results 1 to 4 of 4

Object won't take focus after AfterUpdate

Hybrid View

  1. #1
    Registered User
    Join Date
    12-22-2008
    Location
    Finland
    Posts
    2

    [SOLVED] - Object won't take focus after AfterUpdate

    Rob, believe it or not, you gave me a nudge to the right direction! I managed to solve this problem.

    1) I set tabstop = false for cmdEdit but left it enabled. So you only could activate it with a mouseclick, but not by tab press.

    2) Then I added a cmdTemp (tabIndex 1) right next to txtBarcode (tabIndex 0).

    3) Now, what happens is this:
    - Text is entered to txtBarcode. ENTER is inputed.
    - Only option is to move to the object with the next tabindex = cmdTemp.
    - Since cmdEdit has tabstop = false, focus cannot escape to that object.
    - And cmdTemp_enter says: "txtBarcode.setfocus". Voila! focus switches back to the only other available object in the form - in txtBarcode.
    - And cmdEdit is still clickable by mouse if needed.

    Thanks for loaning your brains on this one.


    - Mikael
    Last edited by MPT; 12-23-2008 at 07:37 AM.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

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

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1