Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

tabbing between controls in VC6

Status
Not open for further replies.

zanza

Programmer
Feb 18, 2002
89
US
i created a gui rc in vc6 using the visual resource editor. i know ill need an accelerator for hotkeys and such, but i cant even tab between the controls on the dialog box. i know how to set the tab order, but i dont know what the tabstop attribute does, and im sure that doesnt help.

so, using vc6, how do i work the rc so it tabs correctly? and, while im typing, does anyone have a good accelerator tutorial on hand (yes, i know, im going to google it anyway).

thanks. :)

žÅNžÅ
 
Have you written handlers for the controls? (Only then, they'll be enabled).
Tabstop attribute
WS_TABSTOP
will enable the control get the focus on tabbing.
 
I don’t have any idea what either of you is talking about. If I create a new dialog resource and drop a bunch of controls on it like buttons, edit boxes, check boxes, combo boxes etc. and run the application to start the dialog with CDialog::DoModal() I can tab around all the controls. No message handles needed.

zanza, perhaps you can describe your problem more specifically. Also this thread would be more appropriate in the Microsoft Visual C++ forum, click here: forum116


-pete
 
well, i solved this problem a few days after i posted it here (as always)... but, i suppose i will post the solution here for the sake of completion.

first off, i set the dialog boxe's attribute "control parent" to true. then i set all of the controls ws_tabstop to true. but it still didnt work. so then, instead of using the CreateDialog() function to create the window, i used DialogBox(). because that encorperates its own message pump, that allows the controlls to be tabbed between.

and btw, pete, im using C, not C++, and because it ended up being a function question, it still fits into the win32 api forum. ^_^

žÅNžÅ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top