使 Infragistics Winforms UltraMaskedEditor 行为不那么奇怪
我决定用 UltraMaskedEditors 替换 UltraTextEditors,以使用户的体验变得更好。 (在 WinForms 应用程序中)但是 UltraMaskedEditor 的(默认)行为与我所期望的标准文本框行为有很大不同。
1) 表单上的第一个字段(重点关注加载的字段)现在显示为自动选择的大量空格。 (UltraMaskedEditor.Value = dbnull)当然,我可以开始输入,它会删除空格,所以它可以工作,但看起来真的很奇怪。 (外观对用户来说很重要)我希望它只是显示在左侧,并且不添加或选择空格。
2) 如果我单击任何 UltraMaskedEditor 字段,它会将光标置于该位置的字段中 - 在左侧添加空格。 同样,在我单击之前,UltraMaskedEditor.value 是空的。当我单击空字段时,我希望光标自动转到最左边的位置,而不插入空格。
3)当我为 UltraMaskedEditor 字段分配值时,它会将这些值显示在屏幕上,并插入随机数量的空格。
有没有办法修复这些特征,使 UltraMaksedEditor 的行为类似于 TextEditor?
I decided to replace my UltraTextEditors with UltraMaskedEditors to make things a little nicer for my users. (In a WinForms App) But the (default) behavior of the UltraMaskedEditor is quite different from what I've come to expect as standard textbox behavior.
1) The first field on the form (the one that gets focus on load) now shows up with a huge number of spaces auto-selected. (The UltraMaskedEditor.Value = dbnull) Of course I can start to type and it will delete the spaces, so it works, but it looks really wierd. (looks are a big deal for users) I want it to simply show up with the cursor on the left and no spaces added or selected.
2) If I click into any UltraMaskedEditor field it puts the cursor into the field at that possition--adding spaces to the left. Again, the UltraMaskedEditor.value is empty before I clicked in. When I click into an empty field I'd like the cursor to automatically go to the left most possition without inserting spaces.
3) When I assign values to UltraMaskedEditor fields it displays them on the screen with what appears to be random numbers of spaces inserted.
Is there a way to fix these characteristics so that the UltraMaksedEditor behaves like the TextEditor?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
下面回答问题:
http://www.infragistics.com/community/forums/p /26779/98387.aspx#98387
The following answer the question:
http://www.infragistics.com/community/forums/p/26779/98387.aspx#98387