Thread: Tab Ordering of GUI Controls

  1. #1
    Registered User
    Join Date
    Oct 2004
    Posts
    100

    Tab Ordering of GUI Controls

    Hi all,


    Is there a way that you can set the tab ordering of the GUI controls on a specific window?

    It would be easier if there was a setting to achieve this in the Visual Studio 6 Resource Editor, however an API to do it is also fine

    Thanks

    Edit:

    Just to clarify im when i mean tab ordering i mean which control is next selected when you press the tab button on the keyboard. Im not talking about the tab component that shows different windows


    Edit (again):

    I've just noticed that you can change the tab ordering by selecting "tab order" from the layout menu. However once I change the tab ordering and compile + run the program it still doesnt allow any kind of tabbing
    Last edited by cloudy; 04-22-2006 at 07:59 AM.

  2. #2
    Confused Magos's Avatar
    Join Date
    Sep 2001
    Location
    Sweden
    Posts
    3,145
    the program it still doesnt allow any kind of tabbing
    I assume you're talking about dialogs? I recall having this problem before, I believe you have to exclude dialog messages from your message loop:

    Code:
    MSG Message;
    while(GetMessage(&Message, NULL, 0, 0))
    {
    	if(!IsDialogMessage(GetActiveWindow(), &Message))
    	{
    		TranslateMessage(&Message);
    		DispatchMessage(&Message);
    	}
    }
    MagosX.com

    Give a man a fish and you feed him for a day.
    Teach a man to fish and you feed him for a lifetime.

  3. #3
    Registered User
    Join Date
    Oct 2004
    Posts
    100
    works perfectly, thank you very much

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. GetSystemMetrics for tab controls?
    By Magos in forum Windows Programming
    Replies: 2
    Last Post: 03-13-2006, 06:07 PM
  2. Adding functionality to controls on a GUI
    By earth_angel in forum C++ Programming
    Replies: 3
    Last Post: 06-16-2005, 01:35 PM
  3. 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
  4. Tab controls - MFC (revived)
    By Robert602 in forum Windows Programming
    Replies: 1
    Last Post: 01-22-2002, 12:32 PM
  5. Newbie question on tab controls
    By Robert602 in forum Windows Programming
    Replies: 3
    Last Post: 01-20-2002, 02:13 PM