【问题标题】:Delphi Android edit1.setfocusDelphi Android edit1.setfocus
【发布时间】:2018-08-21 08:05:30
【问题描述】:

如果edit1.setfocus,我想阅读条件。因此,如果在 potrait 模式下 edit1.setfocus 时屏幕在横向旋转,我可以发出命令。

if edit1.setfocus then

或

if edit1.Focused then

在 FMX 上找不到该命令。你能给我启示吗?谢谢

【问题讨论】:

    标签: android delphi rotation setfocus


    【解决方案1】:

    使用edit1.IsFocused(例如if edit1.IsFocused then ...)检查字段是否有焦点。要将焦点设置在该字段上,请使用edit1.SetFocus;。

    【讨论】:

    • 天啊,真的很简单。我通过了isfocused。非常感谢 Rohit。
    猜你喜欢
    • 2013-01-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2014-08-18
    • 1970-01-01
    相关资源
    最近更新 更多