Thread: Tab stops for edit controls

  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    193

    Tab stops for edit controls

    I was wondering how to make the tab stops like when you hit tab, the focus changes to the next control. I create the controls using the CreateWindow method and when I add the WS_TABSTOP style, nothing happens when I hit tab. Is there any way to do this? Thanks in advanced for any help!!!

  2. #2
    Yes, my avatar is stolen anonytmouse's Avatar
    Join Date
    Dec 2002
    Posts
    2,544

  3. #3
    Registered User
    Join Date
    Aug 2004
    Posts
    193
    I was wondering if there was any way for the program to recieve the user hitting the tab key, get the current focused control, and focus on the next control (which in my case: if the id of the current focused control is 0, the next control that I want to have focused would be 1 and so on).

    EDIT:

    That worked. Thanks.
    Last edited by stickman; 09-17-2006 at 11:03 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Tab Ordering of GUI Controls
    By cloudy in forum Windows Programming
    Replies: 2
    Last Post: 04-22-2006, 09:13 AM
  2. Using the VS.NET form designer with tab controls
    By bennyandthejets in forum Windows Programming
    Replies: 1
    Last Post: 07-06-2004, 12:49 AM
  3. Getting tab stops to work
    By jverkoey in forum Windows Programming
    Replies: 4
    Last Post: 07-06-2003, 02:27 PM
  4. tab controls
    By pinkcheese in forum Windows Programming
    Replies: 4
    Last Post: 10-15-2002, 02:28 AM
  5. Tab controls - MFC (revived)
    By Robert602 in forum Windows Programming
    Replies: 1
    Last Post: 01-22-2002, 12:32 PM