MaskEdit 控件IP地址的Mask设置
1. 添加 MaskEdit 控件。
2. 选中TextEdit控件,查看控件属性。
3. 展开Properties属性项,找到Mask属性项。
4. 设置Mask属性项的EditMask属性值为:(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)
5. 设置Mask属性项的MaskKind属性值为:emkRegExprEx
https://www.cnblogs.com/karkash/p/15714752.html
Copyright © 2014 DelphiW.com 开发 源码 文档 技巧 All Rights Reserved
晋ICP备14006235号-8 晋公网安备 14108102000087号
执行时间: 0.082317113876343 seconds