德尔福Android edit1.setfocus

时间:2018-08-21 08:05:31

标签: android delphi rotation setfocus

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

if edit1.setfocus then

if edit1.Focused then

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

1 个答案:

答案 0 :(得分:0)

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

相关问题