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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WS_TABSTOP Difficulty

Status
Not open for further replies.

tdkratboy

Programmer
Feb 23, 2005
2
US
Hello ALL! Was wondering if anyone could possibly point out how I may properly use the WS_TABSTOP on the controls of my dialog boxes? I have the style defined under the controls in the resource file, however when I hit the TAB key, nothing happens. Below is the format I have it in. Also this is from a working example which I modeled my situation out of. For me it does not work though. If anyone can provide some insight I'd appreciate it.
Code:
EDITTEXT        IDC_EDIT1,115,89,66,10, WS_TABSTOP
Below is my code, which seems to be broken.
Code:
DLGBOX DIALOGEX 0, 0, 300, 302
STYLE DS_SETFONT | DS_MODALFRAME | WS_POPUP | WS_CAPTION
CAPTION "DLG TEST"
FONT 8, "MS Sans Serif", 400, 0, 0x0
BEGIN
    LTEXT           "Edit1",IDC_STATIC,7,17,150,10
    EDITTEXT        IDC_EDIT6,7,27,100,12, WS_TABSTOP
    LTEXT           "Edit2",IDC_STATIC,7,36,100,10
    EDITTEXT        IDC_EDIT1,7,45,100,12, WS_TABSTOP
    LTEXT           "Edit3",IDC_STATIC,115,36,50,10
    EDITTEXT        IDC_EDIT5,115,45,30,12, WS_TABSTOP
    LTEXT           "Edit4",IDC_STATIC,7,59,75,10
    EDITTEXT        IDC_EDIT2,7,67,100,12, WS_TABSTOP
    LTEXT           "Edit5",IDC_STATIC,7,79,75,10
    EDITTEXT        IDC_EDIT3,7,87,100,12, WS_TABSTOP
    LTEXT           "Edit6",IDC_STATIC,79,101,150,10
    EDITTEXT        IDC_EDIT4,79,112,104,50, WS_TABSTOP
    PUSHBUTTON      "Ok",ID_OK,50,200,20,10, WS_TABSTOP
    DEFPUSHBUTTON   "Cancel",IDCANCEL,200,200,30,10, WS_TABSTOP
END
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top