wix MaskedEdit w/粘贴?

发布于 2024-09-30 12:06:07 字数 473 浏览 0 评论 0原文

我正在尝试将 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

冬天的雪花 2024-10-07 12:06:07

这些是底层 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 )

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文