Advertisement

TabStops in Dialog Box

Started by March 27, 2001 10:25 AM
2 comments, last by Zeke 23 years, 10 months ago
When I press tab in all the dialog boxes the cursor moves to another item however the order is not correct (it starts at the top and when i press tab it will jump to one in the middle and then go back to a previous one etc). Where do I find the piece of code that deals with the order in which these tabstops are performed. I know this isnt the best explanation but I would be most appreciative if anyone can help. Thanks for your time Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
The reason your tab stops are out of order is because switching focus between dialog boxes happens from the order they were created. So change the order you create everything in your code.
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian Wilson, Nintendo, Inc, 1989
Advertisement


Load up your dialog in the resource editor, from the menu select Layout | Tab order. Click on the controls in the order you want the tabs to flow to. You are identifying the tab order of the child controls on the dialog.

If you are creating your controls dynamically (at runtime), then you will need to change the order of their creation as the previous poster mentioned.

HTH-

-Z
Thanks for the help guys I appreciate it

Just my thoughts take them as you will.

"People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face
Just my thoughts take them as you will. "People spend too much time thinking about the past, whatever else it is, its gone"-Mel Gibson, Man Without A Face

This topic is closed to new replies.

Advertisement