Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor I
2 Views

tabbing and tab order

Hi all,

I'm running IVF XE 16 R3 and MSVS 2013 Community version. I'm having some tab related difficulties and don't know where to turn. I used Ctrl-D to set my tab order when I noticed that the order included controls that didn't say they were tab related. The second part is that when I'm in an EDITTEXT control, say IDC_M1, and hit the tab key, I get a beep sound and no movement. Part of my .rc file follows:

IDD_PMAIN DIALOGEX 0, 0, 110, 476
STYLE DS_ABSALIGN | DS_SETFONT | DS_NOIDLEMSG | DS_NOFAILCREATE | WS_CHILD | WS_VISIBLE | WS_CLIPSIBLINGS | WS_CLIPCHILDREN | WS_BORDER
EXSTYLE WS_EX_NOPARENTNOTIFY | WS_EX_CONTROLPARENT
FONT 10, "Calisto MT", 400, 0, 0x0
BEGIN
    CONTROL         "Central",IDC_CENT,"Button",BS_AUTORADIOBUTTON | BS_LEFTTEXT | BS_NOTIFY | WS_GROUP | WS_TABSTOP,4,84,39,10,WS_EX_RIGHT
    CONTROL         "RAW",IDC_RAW,"Button",BS_AUTORADIOBUTTON | BS_NOTIFY | WS_TABSTOP,56,84,34,10
    EDITTEXT        IDC_M1,24,107,56,11,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN,WS_EX_ACCEPTFILES
    EDITTEXT        IDC_M2,24,119,56,11,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_ACCEPTFILES
    EDITTEXT        IDC_M3,24,131,56,11,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN,WS_EX_ACCEPTFILES
    EDITTEXT        IDC_M4,24,143,56,11,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN,WS_EX_ACCEPTFILES
    PUSHBUTTON      "<==",IDC_OTHER,82,124,18,14,BS_CENTER,WS_EX_CLIENTEDGE
    PUSHBUTTON      "Fit Pearson Curve",IDC_FIT,20,158,64,14,BS_CENTER,WS_EX_CLIENTEDGE
    PUSHBUTTON      "Clear Data",IDC_CLEAR,69,256,36,14,BS_CENTER,WS_EX_CLIENTEDGE
    EDITTEXT        IDC_NUMRS,48,224,45,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER
    EDITTEXT        IDC_TOTALS,59,238,38,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_NUMBER,WS_EX_CONTROLPARENT
    PUSHBUTTON      "Generate More Data",IDC_MORE,1,256,67,14,BS_CENTER,WS_EX_CLIENTEDGE
    PUSHBUTTON      "E&xit",IDC_EXIT,31,437,36,14,BS_CENTER
    EDITTEXT        IDC_PCTYPE,38,61,22,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_NUMBER | WS_GROUP,WS_EX_LEFTSCROLLBAR
    CONTROL         "",IDC_MYSPIN,"msctls_updown32",UDS_SETBUDDYINT | UDS_ALIGNRIGHT | UDS_AUTOBUDDY | UDS_ARROWKEYS | WS_GROUP | WS_TABSTOP,60,61,13,12
    CONTROL         "Statistics",IDC_STAT,"Button",BS_AUTORADIOBUTTON | BS_VCENTER | WS_GROUP | WS_TABSTOP,5,191,43,10
    CONTROL         "PDF",IDC_PDF,"Button",BS_AUTORADIOBUTTON | BS_VCENTER | WS_TABSTOP,5,202,30,10
    CONTROL         "CDF",IDC_CDF,"Button",BS_AUTORADIOBUTTON | BS_VCENTER | WS_TABSTOP,5,213,31,10
    CONTROL         "Histogram",IDC_HISTO,"Button",BS_AUTORADIOBUTTON | BS_VCENTER | WS_TABSTOP,48,197,49,10
    CONTROL         "EDF",IDC_EDF,"Button",BS_AUTORADIOBUTTON | BS_VCENTER | WS_TABSTOP,47,208,31,10
    LTEXT           "Select Curve Type",IDC_STATIC,22,52,58,8
    LTEXT           "Select Type of Moments",IDC_STATIC,12,76,77,8
    LTEXT           "1st=",IDC_STATIC,9,109,14,8
    LTEXT           "2nd=",IDC_STATIC,7,121,16,8
    LTEXT           "3rd=",IDC_STATIC,9,133,15,8
    LTEXT           "4th=",IDC_STATIC,9,144,15,8
    LTEXT           "Enter Moments 1-4",IDC_STATIC,20,97,65,8
    CTEXT           "Display Options",IDC_STATIC,20,183,50,8,NOT WS_GROUP,WS_EX_TRANSPARENT
    LTEXT           "Sample Size =",IDC_STATIC,2,226,46,8
    LTEXT           "Total Generated =",IDC_STATIC,2,240,56,8
    LTEXT           "Percentile Values",IDC_STATIC,20,280,56,8
    LTEXT           "Percentile",IDC_STATIC,7,290,32,8
    LTEXT           "x-Value",IDC_STATIC,65,290,25,8
    EDITTEXT        IDC_XVAL,57,298,41,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    PUSHBUTTON      "==>",IDC_CALC,39,297,18,14,BS_CENTER
    EDITTEXT        IDC_PCNT,7,298,32,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN,WS_EX_STATICEDGE
    EDITTEXT        IDC_TITLE,7,34,90,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_READONLY | NOT WS_BORDER,WS_EX_TRANSPARENT
    LTEXT           "x-Value",IDC_STATIC,8,322,25,8
    EDITTEXT        IDC_XVALUE,5,330,33,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN,WS_EX_STATICEDGE
    LTEXT           "Probability",IDC_STATIC,64,322,33,8
    EDITTEXT        IDC_CDFVAL,58,330,41,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    LTEXT           "CDF Values",IDC_STATIC,28,313,37,8
    PUSHBUTTON      "==>",IDC_CALCDF,39,329,18,14,BS_CENTER
    LTEXT           "__________________________________________________",IDC_STATIC,0,269,108,10,0,WS_EX_TRANSPARENT
    LTEXT           "__________________________________________________",IDC_STATIC,0,424,108,10,0,WS_EX_TRANSPARENT
    LTEXT           "__________________________________________________",IDC_STATIC,1,41,108,10,0,WS_EX_TRANSPARENT
    LTEXT           "__________________________________________________",IDC_STATIC,0,22,108,10,0,WS_EX_TRANSPARENT
    LTEXT           "__________________________________________________",IDC_STATIC,0,172,108,10,0,WS_EX_TRANSPARENT
    LTEXT           "Mean+6 Sigma=",IDC_STATIC,3,357,50,8
    LTEXT           "Mean+5 Sigma=",IDC_STATIC,3,368,50,8
    EDITTEXT        IDC_6SIG1,52,355,54,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    EDITTEXT        IDC_6SIG2,52,367,54,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    LTEXT           "Six Sigma Values",IDC_STATIC,21,345,51,8
    LTEXT           "Mean+4 Sigma=",IDC_STATIC,3,380,50,8
    EDITTEXT        IDC_6SIG3,52,379,54,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    LTEXT           "Mean+3 Sigma=",IDC_STATIC,3,392,49,8
    EDITTEXT        IDC_6SIG4,52,391,54,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    LTEXT           "Mean+2 Sigma=",IDC_STATIC,3,403,49,8
    EDITTEXT        IDC_6SIG5,52,402,54,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    LTEXT           "Mean+1 Sigma=",IDC_STATIC,3,415,49,8
    EDITTEXT        IDC_6SIG6,52,414,54,12,ES_CENTER | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_WANTRETURN | ES_NUMBER,WS_EX_STATICEDGE
    EDITTEXT        IDC_REGTO,2,14,106,12,ES_CENTER | ES_MULTILINE | ES_AUTOVSCROLL | ES_AUTOHSCROLL | ES_NOHIDESEL | ES_READONLY | NOT WS_BORDER | NOT WS_TABSTOP,WS_EX_TRANSPARENT
    CTEXT           "PDC",IDC_STATIC,0,0,108,12,SS_CENTERIMAGE | SS_SUNKEN,WS_EX_TRANSPARENT
    DEFPUSHBUTTON   "",IDC_DEFBUT,36,462,27,14,BS_CENTER | NOT WS_VISIBLE | WS_DISABLED | NOT WS_TABSTOP,WS_EX_TRANSPARENT
END

My code works nicely. It is just the nice things that aren't working. Can anyone givr me an idea on how to fix this?

Thanks,
Brooks Van Horn

0 Kudos
7 Replies
Highlighted
New Contributor I
2 Views

Attached is a screen shot

Attached is a screen shot with this dialog.

Brooks

0 Kudos
Highlighted
Valued Contributor II
2 Views

perhaps https://msdn

perhaps https://msdn.microsoft.com/en-us/library/csz6b8x8.aspx will help

0 Kudos
Highlighted
New Contributor I
2 Views

Sorry Andrew, already did all

Sorry Andrew, already did all that. See the .rc insert above.

Brooks

PS, is there any way we can converse outside the forum. I know we cannot exchange email addresses but can we write slow mail or snail mail to each other?

0 Kudos
Highlighted
Valued Contributor II
2 Views

Due you have a callback for

Due you have a callback for the edit control that is processing the tab press rather then passing it over for the system to process?

I sent you a PM also by the way.

0 Kudos
Highlighted
2 Views

>> DEFPUSHBUTTON   "",IDC

>> DEFPUSHBUTTON   "",IDC_DEFBUT,36,462,27,14,BS_CENTER | NOT WS_VISIBLE | WS_DISABLED | NOT WS_TABSTOP,WS_EX_TRANSPARENT

In particular:

BS_CENTER | NOT WS_VISIBLE | WS_DISABLED | NOT WS_TABSTOP

This (and others with NOT) should (probably be):

BS_CENTER | WS_DISABLED & NOT WS_VISIBLE & NOT WS_TABSTOP

The & of the NOT removes the bit.

The way you have it.

| NOT WS_VISIBLE

Sets all bits except for WS_VISIBLE (i.e. sets WS_TABSTOP), and

| NOT WS_TABSTOP

Sets all bits except for WS_TABSTOP (i.e. sets WS_VISIBLE)

This is to say, the way you composed the statement, it is equivalent to all 1's (NOT 0).

Jim Dempsey

0 Kudos
Highlighted
New Contributor I
2 Views

To set the tab order of your

To set the tab order of your controls in the .rc file - it is just the order in which the lines appear.

0 Kudos
Highlighted
Valued Contributor II
2 Views

Hiya Brooks when you are

Hiya Brooks when you are logged into the forum your username and a person outline icon are shown in the web page title bar. If you click on your username a drop down menu gives access to PM's. 

0 Kudos