Announcement

Collapse
No announcement yet.

Edit Box Numbers only style

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Edit Box Numbers only style

    I am having a problem with the %ES_NUMBER style in an
    edit box control.

    According to Microsoft's WIN32 Programmers Guide,
    The ES_NUMBER style (available in version 4.0 or later)
    restricts input to the edit control to digits only.

    When I create a control using DDT, I can still type in
    letters and the string variable received by CONTROL GET TEXT
    does indeed contain those letters.

    CONTROL ADD TEXTBOX hDlg,%IDText,0,0,100,12,%ES_NUMBER

    Any thoughts? I am using the defaults which is supposed to
    be Version 4.

    #2
    I actually had it working, for testing, in this string:

    Control Add TextBox,hDlg, %IDTEXT1,"",5,10,100,10, %ES_RIGHT Or %WS_TABSTOP Or %ES_UPPERCASE,%WS_EX_CLIENTEDGE


    Change uppercase to number and it should work...


    Scott

    ------------------
    Scott Turchin


    Scott Turchin
    MCSE, MCP+I
    http://www.tngbbs.com
    ----------------------
    True Karate-do is this: that in daily life, one's mind and body be trained and developed in a spirit of humility; and that in critical times, one be devoted utterly to the cause of justice. -Gichin Funakoshi

    Comment

    Working...
    X
    😀
    🥰
    🤢
    😎
    😡
    👍
    👎