当用户“终于”访问时如何调用事件选择列表中的一个项目?

发布于 2024-08-29 22:59:25 字数 379 浏览 3 评论 0原文

当用户单击 Grid 或 ListBox 中的某个项目时,该项目通常被选中,因此大多数 UI 框架都有一个 onSelected 事件或类似事件。

然而,当用户“最终”通过双击条目“最终”选择一个项目时,我们通常如何调用下一步?您知道某些弹出窗口何时可能出现在所选项目的上下文中,并且用户可以执行进一步的操作。

奇怪的是,我想我从未在任何 UI 框架中看到过这个词。

onPickedonAcceptedonChosenonFinallySelectedonResult?一切都有点尴尬或太特别。还有其他想法吗?

When a user clicks once on an item in a Grid or a ListBox, that item is usually selected, hence most UI frameworks have a onSelected event or the like for that.

However, how can we generally call the next step when a user "finally" selects an item by e.g. double clicking an entry? You know when some popup might appear in the context of the selected item and the user can do further stuff.

Strangely enough, I think I have never seen a word for that in any UI framework.

onPicked, onAccepted, onChosen, onFinallySelected, onResult? All kinda awkward or too special. Any other ideas?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

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

发布评论

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

评论(2

夜光 2024-09-05 22:59:25

我没有发现 选择更改已提交

I haven't found anything wrong with SelectionChangeCommitted

梦行七里 2024-09-05 22:59:25

wxWidgets 框架使用术语activated 来描述您所讨论的内容。因此,该方法可以被称为onActivated

The wxWidgets framework uses the term activated to describe what you're talking about. So, the method could be called onActivated.

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