【发布时间】:2018-08-21 08:05:30
【问题描述】:
如果edit1.setfocus,我想阅读条件。因此,如果在 potrait 模式下 edit1.setfocus 时屏幕在横向旋转,我可以发出命令。
if edit1.setfocus then
或
if edit1.Focused then
在 FMX 上找不到该命令。你能给我启示吗?谢谢
【问题讨论】:
标签: android delphi rotation setfocus
如果edit1.setfocus,我想阅读条件。因此,如果在 potrait 模式下 edit1.setfocus 时屏幕在横向旋转,我可以发出命令。
if edit1.setfocus then
或
if edit1.Focused then
在 FMX 上找不到该命令。你能给我启示吗?谢谢
【问题讨论】:
标签: android delphi rotation setfocus
使用edit1.IsFocused(例如if edit1.IsFocused then ...)检查字段是否有焦点。要将焦点设置在该字段上,请使用edit1.SetFocus;。
【讨论】: