有没有办法在按下按钮时下拉 TJvComboEdit 的自动完成列表?
我有一个带有 TJvComboEdit 控件(来自 Jedi Visual Components 库,jvcl)的表单。该控件有一个 AutoCompleteList,如果我将 AutoCompleteOptions 设置为 acoUpDownKeyDropsList,我可以在运行时通过按向上或向下键显示此列表。
到目前为止,这很好,但除此之外,我希望控件的按钮也显示该列表(就像 TComboBox 按钮一样),但我找不到任何方法来做到这一点。列表的显示似乎是由一些内部 IAutoComplete Windows 接口完成的,该接口不公开用于显示列表的 api。
我错过了什么吗?或者我可以使用其他任何控件来代替吗? (除了明显的 TComboBox)?
I have got a form with a TJvComboEdit control (from Jedi Visual Components library, jvcl) on it. This control has got an AutoCompleteList and if I set AutoCompleteOptions to acoUpDownKeyDropsList I can at runtime show this list by pressing the up or down key.
So far, that's fine, but in addition to that I want the control's button to also show that list (like a TComboBox button does) but I can not find any way to do that. The showing of the list seems to be done by some internal IAutoComplete Windows interface which does not expose an api for showing the list.
Am I missing something? Or is there any other control I could use instead? (apart from the obvious TComboBox)?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
TJvComboEdit
使用IAutoComplete
和IAutoComplete2
< /a> 自动完成功能的接口,无法手动调用它们的下拉列表。您可以使用以下技巧将焦点设置到
TJvComboEdit
并模拟 ↓ 键。The
TJvComboEdit
uses theIAutoComplete
andIAutoComplete2
interfaces for autocomplete features and there is no way to invoke the drop down list for them manually.You can use the following hack which sets the focus to the
TJvComboEdit
and simulate the ↓ key.