gpt4 book ai didi

android - 在 Android 上使用 TPopup 代替 showmessage

转载 作者:太空狗 更新时间:2023-10-29 14:17:56 25 4
gpt4 key购买 nike

来自 Embarcadero readme file for XE5 :

On Android, Use TPopup Instead of ShowMessage

ShowMessage can become unresponsive when the user changes the focus in an Android app. We recommend using TPopup instead. When the user changes the focus away from a popup, the popup closes as expected, but it can be easily invoked again.

如何使用 TPopup 替换此调用?

ShowMessage(SL1[lbxProjects.ItemIndex]);

这个 TPopup 是否仍然适用于 iOS?

最佳答案

TPopup 是一个标准的 FireMonkey 组件 documented here .

据我所知,它在所有 FireMonkey 目标平台上都可用。

有关其使用的示例,请查看 docwiki tutorial ,这无疑是关于构建 Win32 Metropolis 应用程序,但仍然通过使用 TPopup 来运行。本教程还显示为提供的示例之一:MetropolisUIFlyoutDemo .

在运行了一个使用示例之后,您应该会发现将 TPopup 制作成一个消息框是非常简单的。您需要在其上放置几个标签等,并让一些代码获取消息并更新其中一个标签。

关于android - 在 Android 上使用 TPopup 代替 showmessage,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/19797449/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com