Tab index

This is a discussion on Tab index within the Windows Programming forums, part of the Platform Specific Boards category; I have no experience with Visual C++, but have some with Visual C#. Suppose I have a dialog window and ...

  1. #1
    Registered User Micko's Avatar
    Join Date
    Nov 2003
    Posts
    712

    Tab index

    I have no experience with Visual C++, but have some with Visual C#.
    Suppose I have a dialog window and a couple of buttons. In C# there is property called Tab Index which I could set to switch buttons when pressing Tab. Now I have only property Tab Stop, is there any way to set this in VC++ and if there is please tell me how
    Thanks

  2. #2
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    I am not sure I understand your question but if you are trying to change the tab order use control 'D'. In Visual C++Net it is in the menu under 'Format|Tab Order'.
    "A government big enough to give you everything you want, is big enough to take away everything you have." - Thomas Jefferson
    MSVS 2008 Pro / DevPartner / CB NightlyBuilds / MinGW / Cygwin

  3. #3
    Registered User Micko's Avatar
    Join Date
    Nov 2003
    Posts
    712
    Problem is following:
    On my Dialog window I placed 3 buttons and 2 List box. All of them have Tabstop property True, but when I press Tab key I switch among buttons and List Boxes (mybe switch is not the right word) but I think you know what I mean. In Visual C# there is a property Tab Index so by setting tab index when pressing Tab key on keyboard I can move from one button to another, so instead of using mouse to press button I use Tab key and Enter. But when using Tab key the order in which button is focus is not that I want.

    When I choose Format/Tab Order I cannot adjust the way I want for example I adujst one button is 1 and automaticaly other buttons are adjusted as well again in order that I don't want
    Last edited by Micko; 07-14-2004 at 01:27 AM.

  4. #4
    Registered User Bajanine's Avatar
    Join Date
    Dec 2001
    Location
    The most peaks over 10,000 feet!
    Posts
    396
    You must select them in the order you want them to be selected in.

    So press ctrl 'd'. Then select the item you want to be selected as default then simply select each additional item in the order you want to tab through them!

    Hope this helps!
    "A government big enough to give you everything you want, is big enough to take away everything you have." - Thomas Jefferson
    MSVS 2008 Pro / DevPartner / CB NightlyBuilds / MinGW / Cygwin

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. 20q game problems
    By Nexus-ZERO in forum C Programming
    Replies: 24
    Last Post: 12-17-2008, 04:48 PM
  2. Reiventing the wheel (again)
    By Elysia in forum C++ Programming
    Replies: 5
    Last Post: 12-02-2007, 02:26 AM
  3. Function to check memory left from malloc and free?
    By Lechx in forum C Programming
    Replies: 4
    Last Post: 04-24-2006, 05:45 AM
  4. Visual C++
    By Golffor1 in forum C++ Programming
    Replies: 1
    Last Post: 08-04-2003, 04:30 PM
  5. file index update error
    By daluu in forum C Programming
    Replies: 1
    Last Post: 04-28-2003, 02:47 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21