Announcement

Collapse
No announcement yet.

Edit Box Numbers only style

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

  • Scott Turchin
    replied
    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


    Leave a comment:


  • Terry Zivney
    Guest started a topic Edit Box Numbers only style

    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.
Working...
X
😀
🥰
🤢
😎
😡
👍
👎