![]() |
#1 |
Senior Member
Join Date: Nov 2013
Location: Iran
Posts: 343
|
Just type English characters in TextBox
hi
how can set limited a text box for input just English characters and numbers? i searched for found a code like e.KeyChar in C# but not found anything! also i test limited like: HTML Code:
;${NUMERIC} = 0x2000 ;${LOWERCASE} = 0x10 ;${UPPERCASE} = 0x8 ${NSD_AddStyle} $TextBox 0x2000 |
![]() |
![]() |
![]() |
#2 |
Member
Join Date: May 2007
Location: Orange County, CA, U.S.A.
Posts: 73
|
Just do a validation in a custom Leave function, and if it isn't alphanumeric, present an error MessageBox then Abort (since Abort in a leave function stays on the current page).
Validation Function: https://nsis.sourceforge.io/Validation_Function MUI Custom Functions: https://nsis.sourceforge.io/Demonstr...Pre_Show_Leave |
![]() |
![]() |
![]() |
#3 |
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,339
|
Just checking after is the easy solution.
The other options are: A) Custom plug-in that uses SHLimitInputEdit. B) Custom plug-in that subclasses and filters WM_CHAR and handles WM_PASTE. C) WndSubClass plug-in PHP Code:
IntOp $PostCount $PostCount + 1 |
![]() |
![]() |
![]() |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|