Menu

A little help with the TAB key would be great

2002-11-15
2012-09-26
  • Nobody/Anonymous

    Im working on my first C win32 app and things are going ok except for this one little tab problem.

    My main window is created using WS_SYSMENU, WS_MINIMIZEBOX, WS_VISIBLE, DS_3DLOOK and WS_EX_WINDOWEDGE.

    Later on case WM_CREATE i create all controls using CreateWindow and most of them are checkboxes, editfields and some buttons. So the only styles they use are WS_CHILD, WS_VISIBLE, WS_TABSTOP and some use BS_AUTOCHECKBOX.

    All this controls should be acessible using the TAB key, thats why i added WS_TABSTOP to all of them but it doesnt work, nothing happens when i use tab on my app.

    Do you have any idea why that would happen?

     
    • Nobody/Anonymous

      I got no idea why it doesnt work cause it looks like youre doing it right.

       
    • Nobody/Anonymous

      Maybe it would work if you have created your controls using dialogs and not createwindow, try that.

       
    • Nobody/Anonymous

      Ehr, sorry, but im just a lame beginner, i think im not getting what you say:

      You mean,

      a)if all my controls were created inside a Dialog Box (but using CreateWindow/CreateWindowEx) things would work.

      b)If inside my main window i create my dialogs not using CreateWindow/CreateWindowEx but insert the controls as dialogs things would work? I never thought that we possible :\ Is it?

       

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.