Announcement

Collapse
No announcement yet.

Limit text in edit field to 2 characters?

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

  • Chris Holbrook
    replied
    In the IDE, DDT code in the callback's WM_INITDIALOG handler

    Code:
                    CONTROL SEND CBHNDL, %IDC_TEXTBOX1, %EM_SETLIMITTEXT, 2, 0
    or where Rod said.

    Leave a comment:


  • Rodney Hicks
    replied
    In the PB IDE, assuming that you want the edit control to have that limitation from inception, then place a CONTROL SEND statement between the following two statement from the code generated by PBForms:
    Code:
    #PBFORMS END DIALOG
    
      DIALOG SHOW MODAL hDlg, CALL ShowDIALOG1Proc TO lRslt

    Leave a comment:


  • Brian Heibert
    replied
    Is that in the PB forms or PB/Win IDE?

    How do I send it?

    Leave a comment:


  • Chris Holbrook
    replied
    send the EM_SETLIMITTEXT message to the control?

    Leave a comment:


  • Brian Heibert
    started a topic Limit text in edit field to 2 characters?

    Limit text in edit field to 2 characters?

    Hi,

    If this is possible: How do I limit text in a edit field to 2 characters.
    Do I do this in PB Forms or do I need to wait until I work on the program in PBEdit (PB/Win IDE)?
Working...
X