wix MaskedEdit w/粘贴?
我正在尝试将 MaskedEdit(用于串行)控件添加到我拥有的 Wix 项目中。我添加了以下内容:
<Property Id="PIDTemplate">
<![CDATA[?????-?????-?????-?????-?????-?????]]>
</Property>
<Control Id="Edit" Type="MaskedEdit" X="97" Y="141" Width="191" Height="17" Property="SERIALNUMBER" Text="[PIDTemplate]" TabSkip="no" />
这使我可以拥有字母/数字键。唯一的问题是,当我将键粘贴到第一个字段(填充键或连字符分隔)时,它只粘贴第一个字段,而不粘贴其余字段。我需要自己处理才能正常工作吗?
而且控件也不是不透明的。有什么想法如何解决这个问题吗? (透明仅适用于文本控件)。
I'm trying to add a MaskedEdit (for a serial) control to a Wix project I have. I have the following added:
<Property Id="PIDTemplate">
<![CDATA[?????-?????-?????-?????-?????-?????]]>
</Property>
<Control Id="Edit" Type="MaskedEdit" X="97" Y="141" Width="191" Height="17" Property="SERIALNUMBER" Text="[PIDTemplate]" TabSkip="no" />
Which allows me to have a Alphabetical/Numerial key. The only problem is, when I paste a key into the first field (either the fill key, or hyphen seperated), it only pastes the first field and not the rest. Do I need to do my own handling for this to work?
Also the control is not opaque. Any ideas how to fix this? (Transparent is only available on Text controls).
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这些是底层 MSI 内部 UI 控件的限制。如果不编写自己的外部 UI 处理程序,您将无能为力(工作量 = 巨大)
These are constraints of the underlying MSI internal UI controls. There isn't anything you can do about it without writing your own external UI handler ( level of effort = massive )